diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt index 3394789..e15bc8e 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/pairing/BasePairingHelper.kt @@ -74,14 +74,14 @@ abstract class BasePairingHelper( }.toMap() } - // number of players in the biggest club and the biggest country - // this can be used to disable geocost if there is a majority of players from the same country or club - protected val biggestClubSize by lazy { - pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! - } - protected val biggestCountrySize by lazy { - pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! - } + // number of players in the biggest club and the biggest country + // this can be used to disable geocost if there is a majority of players from the same country or club + protected val biggestClubSize by lazy { + pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! + } + protected val biggestCountrySize by lazy { + pairables.groupingBy { it.club }.eachCount().values.maxOrNull()!! + } // already paired players map protected fun Pairable.played(other: Pairable) = historyHelper.playedTogether(this, other)