Fix mmsCorrection import/export

This commit is contained in:
Claude Brisson
2024-01-24 07:41:18 +01:00
parent aec3f43737
commit d725587c88

View File

@@ -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
}"/>"""
}
}
</Players>