diff options
author | Steru <jerrydream111@gmail.com> | 2024-08-04 22:56:15 +0200 |
---|---|---|
committer | Steru <jerrydream111@gmail.com> | 2024-08-04 22:56:15 +0200 |
commit | 77f8836508a4c28c7c6c1352ff891c5d36d00237 (patch) | |
tree | c32cacf93e74ae546fe225e8f8cb351768ed4b90 /src/api/OlympicsAPI.cpp | |
parent | 0445396ffa371cdc546d7198efc0677ad42b7aa5 (diff) |
Added method to get medal winners. Adjusted sort result method to also work with the medal winners.
Diffstat (limited to 'src/api/OlympicsAPI.cpp')
-rw-r--r-- | src/api/OlympicsAPI.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/api/OlympicsAPI.cpp b/src/api/OlympicsAPI.cpp index 4fe9701..0334800 100644 --- a/src/api/OlympicsAPI.cpp +++ b/src/api/OlympicsAPI.cpp @@ -121,20 +121,20 @@ string OlympicsAPI::getDisciplineShort(OlympicsAPI::Disciplines sport) { case OlympicsAPI::Disciplines::ModernPentathlon: return "MPN"; case OlympicsAPI::Disciplines::Rowing: return "ROW"; case OlympicsAPI::Disciplines::Rugby7: return "RU7"; - case OlympicsAPI::Disciplines::Sailing: return "SAL"; break; - case OlympicsAPI::Disciplines::Shooting: return "SHO"; break; - case OlympicsAPI::Disciplines::Skateboarding: return "SKB"; break; - case OlympicsAPI::Disciplines::SportClimbing: return "CLB"; break; - case OlympicsAPI::Disciplines::Surfing: return "SRF"; break; - case OlympicsAPI::Disciplines::TableTennis: return "TTE"; break; - case OlympicsAPI::Disciplines::Taekwondo: return "TKW"; break; - case OlympicsAPI::Disciplines::Tennis: return "TEN"; break; - case OlympicsAPI::Disciplines::Triathlon: return "TRI"; break; - case OlympicsAPI::Disciplines::VolleyballBeach: return "VBV"; break; - case OlympicsAPI::Disciplines::VolleyballIndoor: return "VVO"; break; - case OlympicsAPI::Disciplines::Weightlifting: return "WLF"; break; - case OlympicsAPI::Disciplines::WrestlingFreestyle: return "WRE"; break; - case OlympicsAPI::Disciplines::WrestlingGrecoRoman: return "WRG"; break; + case OlympicsAPI::Disciplines::Sailing: return "SAL"; + case OlympicsAPI::Disciplines::Shooting: return "SHO"; + case OlympicsAPI::Disciplines::Skateboarding: return "SKB"; + case OlympicsAPI::Disciplines::SportClimbing: return "CLB"; + case OlympicsAPI::Disciplines::Surfing: return "SRF"; + case OlympicsAPI::Disciplines::TableTennis: return "TTE"; + case OlympicsAPI::Disciplines::Taekwondo: return "TKW"; + case OlympicsAPI::Disciplines::Tennis: return "TEN"; + case OlympicsAPI::Disciplines::Triathlon: return "TRI"; + case OlympicsAPI::Disciplines::VolleyballBeach: return "VBV"; + case OlympicsAPI::Disciplines::VolleyballIndoor: return "VVO"; + case OlympicsAPI::Disciplines::Weightlifting: return "WLF"; + case OlympicsAPI::Disciplines::WrestlingFreestyle: return "WRE"; + case OlympicsAPI::Disciplines::WrestlingGrecoRoman: return "WRG"; default: return "ARC"; // default, which should not be possible, because of enum } } |