change counting page updates
This commit is contained in:
parent
90f238c56f
commit
4207e89665
@ -27,11 +27,7 @@ def update_wiki(token_id, token_secret, update_csv, update_films_by_year, update
|
|||||||
with IncrementalBar('Retrieving movie data', max=viewing_count, suffix='%(percent).1f%% - %(eta)ds remaining', check_tty=False) as bar:
|
with IncrementalBar('Retrieving movie data', max=viewing_count, suffix='%(percent).1f%% - %(eta)ds remaining', check_tty=False) as bar:
|
||||||
VCinemaUtils.add_imdb_data_to_viewings(viewings, data_fields, bar)
|
VCinemaUtils.add_imdb_data_to_viewings(viewings, data_fields, bar)
|
||||||
|
|
||||||
update_page_count = 0
|
update_page_count = sum([update_films_by_year, update_films_by_country])
|
||||||
if update_films_by_year:
|
|
||||||
update_page_count += 1
|
|
||||||
if update_films_by_country:
|
|
||||||
update_page_count += 1
|
|
||||||
|
|
||||||
with IncrementalBar('Processing viewing data', max=update_page_count, suffix='%(percent).1f%% - %(eta)ds remaining', check_tty=False) as bar:
|
with IncrementalBar('Processing viewing data', max=update_page_count, suffix='%(percent).1f%% - %(eta)ds remaining', check_tty=False) as bar:
|
||||||
if update_films_by_year:
|
if update_films_by_year:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user