Merge pull request 'combine west germany and germany before generating map' (#4) from bugfix/2-germany-has-wrong-opacity into master

Reviewed-on: #4
This commit is contained in:
Sarah 2022-07-22 20:27:45 +00:00
commit fd6b92c50d
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"): 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) counter = Counter(films_by_country)
countries = [k for k, v in counter.items()] countries = [k for k, v in counter.items()]
counts = [len(v) for _, v in counter.items()] counts = [len(v) for _, v in counter.items()]