remove duped lines
This commit is contained in:
parent
a702fa2612
commit
8b4a1c65aa
|
@ -34,9 +34,6 @@ def update_wiki(token_id, token_secret, update_csv, pages):
|
||||||
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 = sum([update_films_by_year, update_films_by_country, update_film_references,
|
|
||||||
update_hidden_themes, update_keyword_scores])
|
|
||||||
|
|
||||||
print("Processing viewing data")
|
print("Processing viewing data")
|
||||||
|
|
||||||
if update_films_by_year:
|
if update_films_by_year:
|
||||||
|
@ -57,25 +54,6 @@ def update_wiki(token_id, token_secret, update_csv, pages):
|
||||||
|
|
||||||
print("Done!")
|
print("Done!")
|
||||||
|
|
||||||
with IncrementalBar('Updating pages', max=update_page_count, check_tty=False) as bar:
|
|
||||||
if update_films_by_year:
|
|
||||||
FilmsByYear.update_page(token_id, token_secret, films_by_year)
|
|
||||||
bar.next()
|
|
||||||
if update_films_by_country:
|
|
||||||
FilmsByCountry.update_page(token_id, token_secret, films_by_country)
|
|
||||||
bar.next()
|
|
||||||
if update_film_references:
|
|
||||||
FilmsByReference.update_page(token_id, token_secret, films_by_reference)
|
|
||||||
bar.next()
|
|
||||||
if update_hidden_themes:
|
|
||||||
HiddenThemes.update_page(token_id, token_secret, hidden_themes)
|
|
||||||
bar.next()
|
|
||||||
if update_keyword_scores:
|
|
||||||
KeywordScores.update_page(token_id, token_secret, keyword_scores)
|
|
||||||
bar.next()
|
|
||||||
|
|
||||||
bar.finish()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(description='Update wiki pages.')
|
parser = argparse.ArgumentParser(description='Update wiki pages.')
|
||||||
|
|
Loading…
Reference in New Issue