From cbc337798e266860d77ccb8e634129c8203582b7 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Thu, 18 Mar 2021 11:07:57 +0100 Subject: [PATCH] Remove all-worksheets option, loop through all worksheets by default --- auto-archive.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auto-archive.py b/auto-archive.py index afb80b1..096e763 100644 --- a/auto-archive.py +++ b/auto-archive.py @@ -220,15 +220,14 @@ def main(): description="Automatically use youtube-dl to download media from a Google Sheet") parser.add_argument("--sheet", action="store", dest="sheet") parser.add_argument('--streaming', dest='streaming', action='store_true') - parser.add_argument('--all-worksheets', - dest='all_worksheets', action='store_true') + args = parser.parse_args() print("Opening document " + args.sheet) gc = gspread.service_account() sh = gc.open(args.sheet) - n_worksheets = len(sh.worksheets()) if args.all_worksheets else 1 + n_worksheets = len(sh.worksheets()) s3_client = boto3.client('s3', region_name=os.getenv('DO_SPACES_REGION'),