From 0a3798b13ee109515ded2cc258e18e129788563d Mon Sep 17 00:00:00 2001 From: Sarah Date: Wed, 9 Mar 2022 20:47:35 +0000 Subject: [PATCH] ignore warning and fix output --- update_films_by_country_page.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_films_by_country_page.py b/update_films_by_country_page.py index 7f3bf6b..36223ba 100644 --- a/update_films_by_country_page.py +++ b/update_films_by_country_page.py @@ -5,6 +5,8 @@ import os from progress.bar import Bar from wand.image import Image import worldmap +import warnings +warnings.filterwarnings("ignore") from bookstack import Bookstack @@ -123,6 +125,7 @@ def update_films_by_country_page(token_id, token_secret): with Bar('Generating table', max=country_count, suffix='%(percent).1f%% - %(eta)ds remaining', check_tty=False) as bar: film_by_country_table = build_table(viewings_by_country, bar) + print("Drawing map") country_counter = Counter(viewings_by_country) png_data = draw_map(country_counter)