From 77f8836508a4c28c7c6c1352ff891c5d36d00237 Mon Sep 17 00:00:00 2001 From: Steru Date: Sun, 4 Aug 2024 22:56:15 +0200 Subject: Added method to get medal winners. Adjusted sort result method to also work with the medal winners. --- src/api/OlympicsAPI.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/api') 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 } } -- cgit v1.2.3