Skip to content

Commit

Permalink
Fix AttributeError: correct wikidata_dump_path argument mapping in ge…
Browse files Browse the repository at this point in the history
…t command.
  • Loading branch information
axif0 committed Dec 16, 2024
1 parent 66242f4 commit 962684a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/scribe_data/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion src/scribe_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 962684a

Please sign in to comment.