From 962684a8a873ff644888ee6de1c12320ed027b1a Mon Sep 17 00:00:00 2001 From: axif Date: Mon, 16 Dec 2024 14:28:16 +0600 Subject: [PATCH] Fix AttributeError: correct wikidata_dump_path argument mapping in get command. --- src/scribe_data/cli/main.py | 6 +++--- src/scribe_data/utils.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scribe_data/cli/main.py b/src/scribe_data/cli/main.py index 00007938..5afe863b 100644 --- a/src/scribe_data/cli/main.py +++ b/src/scribe_data/cli/main.py @@ -355,7 +355,7 @@ def main() -> None: overwrite=args.overwrite, all=args.all, identifier_case=args.identifier_case, - wiki_dump=args.wikidata_dump, + wikidata_dump=args.wikidata_dump_path, ) elif args.command in ["total", "t"]: @@ -389,8 +389,8 @@ def main() -> None: elif args.command in ["download", "d"]: wd_lexeme_dump_download_wrapper( - wikidata_dump=args.wikidata_dump - if args.wikidata_dump != "latest" + wikidata_dump=args.wikidata_dump_version + if args.wikidata_dump_version != "latest" else None, output_dir=args.output_dir, ) diff --git a/src/scribe_data/utils.py b/src/scribe_data/utils.py index af5ad043..45cf1b2e 100644 --- a/src/scribe_data/utils.py +++ b/src/scribe_data/utils.py @@ -650,7 +650,7 @@ def check_lexeme_dump_prompt_download(output_dir: str): rprint(f" - {Path(output_dir)}/{dump.name}") user_input = input( - "\nDo you want to:\n - Delete existing dumps (d)?\n - Skip download (s)?\n - Use existing latest dump (u)?\n -Download new version(n)?\n[d/s/u/n]: " + "\nDo you want to:\n - Delete existing dumps (d)?\n - Skip download (s)?\n - Use existing latest dump (u)?\n - Download new version(n)?\n[d/s/u/n]: " ).lower() if user_input == "d":