Fix result sheets printing with bye
This commit is contained in:
@@ -66,4 +66,9 @@ class PairgothTool {
|
|||||||
pairable.getInt("rank")
|
pairable.getInt("rank")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun removeBye(games: Collection<Json.Object>) =
|
||||||
|
games.filter {
|
||||||
|
it.getInt("b")!! != 0 && it.getInt("w")!! != 0
|
||||||
|
}
|
||||||
}
|
}
|
@@ -22,7 +22,7 @@
|
|||||||
</script>
|
</script>
|
||||||
#stop
|
#stop
|
||||||
#end
|
#end
|
||||||
#set($games = $roundPairing.games)
|
#set($games = $utils.removeBye($roundPairing.games))
|
||||||
#foreach($game in $games)
|
#foreach($game in $games)
|
||||||
#set($white = $pmap[$game.w])
|
#set($white = $pmap[$game.w])
|
||||||
#set($black = $pmap[$game.b])
|
#set($black = $pmap[$game.b])
|
||||||
|
Reference in New Issue
Block a user