Always display MMS when choosing SCOREX placement criterium
This commit is contained in:
@@ -34,6 +34,7 @@ fun Tournament<*>.getSortedPairables(round: Int, includePreliminary: Boolean = f
|
||||
else ceil(score - epsilon)
|
||||
}
|
||||
|
||||
// CB TODO - factorize history helper creation between here and solver classes
|
||||
val historyHelper = HistoryHelper(historyBefore(round + 1)) {
|
||||
if (pairing.type == PairingType.SWISS) wins.mapValues { Pair(0.0, it.value) }
|
||||
else pairables.mapValues {
|
||||
|
@@ -92,6 +92,9 @@ object StandingsHandler: PairgothApiHandler {
|
||||
response.contentType = "text/plain;charset=${encoding}"
|
||||
val neededCriteria = ArrayList(tournament.pairing.placementParams.criteria)
|
||||
if (!neededCriteria.contains(NBW)) neededCriteria.add(NBW)
|
||||
if (neededCriteria.first() == SCOREX) {
|
||||
neededCriteria.add(1, MMS)
|
||||
}
|
||||
exportToEGFFormat(tournament, sortedPairables, neededCriteria, writer)
|
||||
writer.flush()
|
||||
return null
|
||||
|
Reference in New Issue
Block a user