From 96ab1d213c53b0042792d08220357027c3e22efa Mon Sep 17 00:00:00 2001 From: Sarah Date: Fri, 25 Mar 2022 22:28:23 +0000 Subject: [PATCH] Update update_viewings_csv.py --- update_viewings_csv.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/update_viewings_csv.py b/update_viewings_csv.py index 017f75c..411a65f 100644 --- a/update_viewings_csv.py +++ b/update_viewings_csv.py @@ -1,4 +1,3 @@ -import argparse from bs4 import BeautifulSoup import hashlib @@ -31,14 +30,4 @@ def update_viewings_csv(token_id, token_secret, check_existing=True): Bookstack.delete_attachment(VCinemaUtils.JACKNET_WIKI_URL, token_id, token_secret, existing_attachment_id) print("File updated") else: - print("File already up-to-date") - - -if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Update the vcinema.csv file with data from the CSV wiki page.') - parser.add_argument('token_id', help='API token ID.') - parser.add_argument('token_secret', help='API token secret.') - - args = parser.parse_args() - - update_viewings_csv(args.token_id, args.token_secret) + print("File already up-to-date") \ No newline at end of file