Fix result sheets printing with bye

This commit is contained in:
Claude Brisson
2024-01-25 07:11:16 +01:00
parent a4b18e0ef1
commit 46be254272
2 changed files with 6 additions and 1 deletions

View File

@@ -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
}
} }

View File

@@ -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])