From d725587c889366042c39e8bb258099751fadd0e6 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Wed, 24 Jan 2024 07:41:18 +0100 Subject: [PATCH] Fix mmsCorrection import/export --- .../src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt index 35fc196..518b863 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/ext/OpenGotha.kt @@ -146,7 +146,8 @@ object OpenGotha { rank = Pairable.parseRank(player.rank), country = player.country, club = player.club, - final = "FIN" == player.registeringStatus + final = "FIN" == player.registeringStatus, + mmsCorrection = player.smmsCorrection ).also { player.participating.toString().forEachIndexed { i,c -> if (c == '0') it.skip.add(i + 1) @@ -218,7 +219,9 @@ object OpenGotha { player.rating }" ratingOrigin="" registeringStatus="${ if (player.final) "FIN" else "PRE" - }" smmsCorrection="0"/>""" + }" smmsCorrection="${ + player.mmsCorrection + }"/>""" } }