Normalize country code to UK instead of GB

- CountriesTool: use 'uk' key for United Kingdom
- EGFRatingsHandler: keep UK as-is (no conversion to GB)
- Pairable: convert GB to UK (inverse of previous behavior)
This commit is contained in:
Claude Brisson
2025-11-29 12:30:15 +01:00
parent cbadb4d6bb
commit 4daa707f3e
3 changed files with 3 additions and 6 deletions

View File

@@ -36,9 +36,6 @@ object EGFRatingsHandler: RatingsHandler(RatingsManager.Ratings.EGF) {
if (adjusted < 0) "${-(adjusted - 99) / 100}k"
else "${(adjusted + 100) / 100}d"
}
if ("UK" == player.getString("country")) {
player["country"] = "GB"
}
// fix for missing firstnames
if (player.getString("firstname") == null) {
player["firstname"] = ""

View File

@@ -95,7 +95,7 @@ class CountriesTool {
"fj" to "Fiji",
"fr" to "France",
"ga" to "Gabon",
"gb" to "United Kingdom",
"uk" to "United Kingdom",
"gd" to "Grenada",
"ge" to "Georgia",
"gg" to "Guernsey",