fix
This commit is contained in:
parent
0a39807fec
commit
6d7c08a9af
@ -22,7 +22,7 @@ def save_data(file_name, data):
|
|||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
category_dict = {"green": "Uwierzytelniona", "yellow": "Skorygowana", "red": "Przepisana"}
|
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}"
|
CATEGORY_URL = f"{MAIN_URL}/w/index.php?title=Kategoria:{category_dict[args.type]}&pagefrom={args.start_file_name}"
|
||||||
else:
|
else:
|
||||||
CATEGORY_URL = f"{MAIN_URL}/wiki/Kategoria:{category_dict[args.type]}"
|
CATEGORY_URL = f"{MAIN_URL}/wiki/Kategoria:{category_dict[args.type]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user