Commit 8f8e1bde authored by PizZaKatZe's avatar PizZaKatZe

Update default data source URL

parent 0d520b3a
......@@ -24,7 +24,7 @@ from sys import stdout
from jht_flyergen.engine import fetch_data, render, generate_tex, process_sessions, read_data
TEST_URL = 'https://events.ccc.de/congress/2018/wiki/index.php/Special:Ask/cl:YzpVT9tKxFAM_KKaouzLQl5ERH1QYb8gp03t2Z5LSVJK_XrTdRcUcplhhjAZqmQyPGstkGKOhofWQZmQUoKRqWdR1LGuoEzSjYkCJ3w7fbxDl0hdq2IUEjf37RqneMOa1wuEXUeo4oeQtIM6DMqGLTSHR69XdfNQxecUez0eTRZuDk9e0Dw87_1Cu6dn7STOFmvBP_hm-pTasSr3bg2bD8_GOaQNq3xRid9X5f9RXUINZ-7s7sqNxHxbzIynnUCmWH6fhlnYbJslFsM9JizFg9DMF_YD' # pylint: disable=line-too-long
DEFAULT_URL = 'https://events.ccc.de/congress/2019/wiki/index.php/Special:Ask/cl:YzpVT9tKxFAM_KKaouzLQl5ERH1QYb8gp03t2Z5LSVJK_XrTdRcUcplhhjAZqmQyPGstkGKOhofWQZmQUoKRqWdR1LGuoEzSjYkCJ3w7fbxDl0hdq2IUEjf37RqneMOa1wuEXUeo4oeQtIM6DMqGLTSHR69XdfNQxecUez0eTRZuDk9e0Dw87_1Cu6dn7STOFmvBP_hm-pTasSr3bg2bD8_GOaQNq3xRid9X5f9RXUINZ-7s7sqNxHxbzIynnUCmWH6fhlnYbJslFsM9JizFg9DMF_YD' # pylint: disable=line-too-long
def parse_arguments(args):
"""Parses command-line arguments.
......@@ -33,7 +33,7 @@ def parse_arguments(args):
parser.add_argument('-d', '--day', nargs='?', default=28,
help='day of month (default: 28)')
parser.add_argument('-l', '--links', action='store_true',
help='generate QR codes with links to sessions\'s wiki pages')
help='generate QR codes with links to sessions\' wiki pages')
parser.add_argument('-m', '--homepage', default='https://junghack.de',
help='JHT homepage URL')
parser.add_argument('-p', '--print',
......@@ -45,9 +45,9 @@ def parse_arguments(args):
help='path to output file; if omitted raw PDF data is written to stdout')
sources = parser.add_argument_group('data sources').add_mutually_exclusive_group(required=True)
sources.add_argument('-u', '--url', nargs='?', const=TEST_URL,
sources.add_argument('-u', '--url', nargs='?', const=DEFAULT_URL,
help='URL to fetch JSON data from; '
'if URL is omitted, a hard-coded URL returning test data is used')
'if URL is omitted, a hard-coded default URL is used')
sources.add_argument('-f', '--file', dest='path',
help='path to file containing JSON data')
return parser.parse_args(args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment