Don't list non final pairables in standings

This commit is contained in:
Claude Brisson
2024-01-20 11:41:34 +01:00
parent 0fba3e065c
commit 04f9c27cbe

View File

@@ -84,7 +84,7 @@ object StandingsHandler: PairgothApiHandler {
DC -> nullMap
}
}
val pairables = tournament.pairables.values.map { it.toMutableJson() }
val pairables = tournament.pairables.values.filter { it.final }.map { it.toMutableJson() }
pairables.forEach { player ->
for (crit in criteria) {
player[crit.first] = crit.second[player.getID()] ?: 0.0