This commit is contained in:
Michał Kozłowski 2023-01-07 11:37:32 +01:00
parent 0a39807fec
commit 6d7c08a9af

View File

@ -22,7 +22,7 @@ def save_data(file_name, data):
def main(args):
category_dict = {"green": "Uwierzytelniona", "yellow": "Skorygowana", "red": "Przepisana"}
if args.start_page:
if args.start_file_name and args.start_page_number:
CATEGORY_URL = f"{MAIN_URL}/w/index.php?title=Kategoria:{category_dict[args.type]}&pagefrom={args.start_file_name}"
else:
CATEGORY_URL = f"{MAIN_URL}/wiki/Kategoria:{category_dict[args.type]}"