From ce13200a841c2ebde804b714a69667ecf964e80b Mon Sep 17 00:00:00 2001 From: CosmicAlpha Date: Tue, 5 Dec 2023 13:16:43 -0700 Subject: [PATCH] Update --- py/generateSitemapIndex.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/py/generateSitemapIndex.py b/py/generateSitemapIndex.py index ce90338..3a34899 100644 --- a/py/generateSitemapIndex.py +++ b/py/generateSitemapIndex.py @@ -1,5 +1,3 @@ -# Modified from MirahezeMagic - from datetime import datetime import requests import xmltodict @@ -11,13 +9,13 @@ parser = argparse.ArgumentParser( description='Generate WikiTide sitemap index of all public wikis, and upload the object to the "root" container in Swift') parser.add_argument( - '-A', '--auth', dest='auth', default=os.environ.get('ST_AUTH', None), + '-A', '--auth', dest='auth', default=os.environ.get('ST_AUTH'), help='URL for obtaining an auth token for Swift (ST_AUTH)') parser.add_argument( - '-U', '--user', dest='user', default=os.environ.get('ST_USER', None), + '-U', '--user', dest='user', default=os.environ.get('ST_USER'), help='User name for obtaining an auth token for Swift (ST_USER)') parser.add_argument( - '-K', '--key', dest='key', default=os.environ.get('ST_KEY', None), + '-K', '--key', dest='key', default=os.environ.get('ST_KEY'), help='Key for obtaining an auth token for Swift (ST_KEY)') args = parser.parse_args()