pass token to updates

This commit is contained in:
Sarah 2022-04-22 20:51:49 +01:00
parent d9d7948919
commit 2e68577785

View File

@ -57,19 +57,19 @@ def update_wiki(token_id, token_secret, update_csv, pages):
with IncrementalBar('Updating pages', max=update_page_count, check_tty=False) as bar:
if update_films_by_year:
FilmsByYear.update_page(films_by_year)
FilmsByYear.update_page(token_id, token_secret, films_by_year)
bar.next()
if update_films_by_country:
FilmsByCountry.update_page(films_by_country)
FilmsByCountry.update_page(token_id, token_secret, films_by_country)
bar.next()
if update_film_references:
FilmsByReference.update_page(films_by_reference)
FilmsByReference.update_page(token_id, token_secret, films_by_reference)
bar.next()
if update_hidden_themes:
HiddenThemes.update_page(hidden_themes)
HiddenThemes.update_page(token_id, token_secret, hidden_themes)
bar.next()
if update_keyword_scores:
KeywordScores.update_page(keyword_scores)
KeywordScores.update_page(token_id, token_secret, keyword_scores)
bar.next()
bar.finish()