combine west germany and germany before generating map #4

Merged
sarah merged 1 commits from bugfix/2-germany-has-wrong-opacity into master 2022-07-22 21:27:46 +01:00
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ def build_table(films_by_country):
def draw_map(films_by_country, file_name="vcinema_map.svg"):
films_by_country['Germany'] += films_by_country['West Germany']
del films_by_country['West Germany']
counter = Counter(films_by_country)
countries = [k for k, v in counter.items()]
counts = [len(v) for _, v in counter.items()]