diff --git a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt index 577b6d3..3c74039 100644 --- a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt +++ b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/view/PairgothTool.kt @@ -66,4 +66,9 @@ class PairgothTool { pairable.getInt("rank") } } + + fun removeBye(games: Collection) = + games.filter { + it.getInt("b")!! != 0 && it.getInt("w")!! != 0 + } } \ No newline at end of file diff --git a/view-webapp/src/main/webapp/result-sheets.html b/view-webapp/src/main/webapp/result-sheets.html index 1ec4734..89e34c4 100644 --- a/view-webapp/src/main/webapp/result-sheets.html +++ b/view-webapp/src/main/webapp/result-sheets.html @@ -22,7 +22,7 @@ #stop #end -#set($games = $roundPairing.games) +#set($games = $utils.removeBye($roundPairing.games)) #foreach($game in $games) #set($white = $pmap[$game.w]) #set($black = $pmap[$game.b])