From 31d4c9d053909779d542900411a9bda8c17f6e30 Mon Sep 17 00:00:00 2001 From: Sarah Date: Fri, 8 Apr 2022 23:58:02 +0100 Subject: [PATCH] show czechia on map --- country-flags.csv | 1 - update_films_by_country.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/country-flags.csv b/country-flags.csv index f32768c..4a3f427 100644 --- a/country-flags.csv +++ b/country-flags.csv @@ -59,7 +59,6 @@ Croatia,🇭🇷 Cuba,🇨🇺 Cyprus,🇨🇾 Czech Republic,🇨🇿 -Czechia,🇨🇿 Czechoslovakia,🇨🇿 Democratic Republic of the Congo,🇨🇩 Denmark,🇩🇰 diff --git a/update_films_by_country.py b/update_films_by_country.py index c612959..7821f2f 100644 --- a/update_films_by_country.py +++ b/update_films_by_country.py @@ -16,6 +16,10 @@ FILMS_BY_COUNTRY_PAGE_ID = 34 def get_films_by_country(viewings): viewings_filtered_by_country = VCinemaUtils.filter_viewings(viewings, "countries") + if "Czechia" in viewings_filtered_by_country.keys(): + viewings_filtered_by_country["Czech Republic"] = viewings_filtered_by_country["Czechia"] + viewings_filtered_by_country.pop("Czechia") + return viewings_filtered_by_country -- 2.40.1