Fix pairgoth import and EGF/FFG export missing flush

This commit is contained in:
Claude Brisson
2024-03-07 05:43:45 +01:00
parent 418aad891d
commit e4eff46750
4 changed files with 12 additions and 6 deletions

View File

@@ -92,11 +92,13 @@ object StandingsHandler: PairgothApiHandler {
val neededCriteria = ArrayList(tournament.pairing.placementParams.criteria)
if (!neededCriteria.contains(NBW)) neededCriteria.add(NBW)
exportToEGFFormat(tournament, sortedPairables, neededCriteria, writer)
writer.flush()
return null
}
"application/ffg" -> {
response.contentType = "text/plain;charset=${encoding}"
exportToFFGFormat(tournament, sortedPairables, writer)
writer.flush()
return null
}
else -> ApiHandler.badRequest("invalid Accept header: $accept")