diff --git a/country_flags.csv b/countries.csv
similarity index 100%
rename from country_flags.csv
rename to countries.csv
diff --git a/update_films_by_country.py b/update_films_by_country.py
index eb1bc48..1e00617 100644
--- a/update_films_by_country.py
+++ b/update_films_by_country.py
@@ -29,9 +29,8 @@ def build_page(films_by_country):
country_counter = Counter(films_by_country)
png_data = draw_map(country_counter)
encoded = base64.b64encode(png_data).decode("utf-8")
- image_html = "".format(encoded)
-
- page = image_html + film_by_country_table
+ image = "".format(encoded)
+ page = image + "\n" + film_by_country_table
return page
@@ -54,36 +53,18 @@ def build_table(films_by_country, bar=None):
flags = get_flags_dict()
- table = "
Country | Films |
---|---|
" - row += "{} {}".format(str(country), flags[country] if country in flags.keys() else "") - row += " | " - - row += ""
-
- film_links = ["{}".format(film['imdb_id'], film['title'])
- for film in films_by_country_sorted[country]]
-
- row += " ".join(film_links) - - row += " | "
- row += "