ignore warning and fix output

This commit is contained in:
Sarah 2022-03-09 20:47:35 +00:00
parent 8fcfacbdc5
commit 0a3798b13e

View File

@ -5,6 +5,8 @@ import os
from progress.bar import Bar from progress.bar import Bar
from wand.image import Image from wand.image import Image
import worldmap import worldmap
import warnings
warnings.filterwarnings("ignore")
from bookstack import Bookstack 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: 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) film_by_country_table = build_table(viewings_by_country, bar)
print("Drawing map")
country_counter = Counter(viewings_by_country) country_counter = Counter(viewings_by_country)
png_data = draw_map(country_counter) png_data = draw_map(country_counter)