Skip to content

Commit

Permalink
rename check_existing_lexeme_dump function to check_lexeme_dump_promp…
Browse files Browse the repository at this point in the history
…t_download
  • Loading branch information
axif0 committed Dec 10, 2024
1 parent 4b9a5bb commit 1b0d6fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/scribe_data/cli/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from tqdm import tqdm
from scribe_data.utils import DEFAULT_DUMP_EXPORT_DIR
from scribe_data.wiktionary.wikitionary_utils import download_wiki_lexeme_dump
from scribe_data.utils import check_existing_lexeme_dump
from scribe_data.utils import check_lexeme_dump_prompt_download


def download_wrapper(
Expand All @@ -54,7 +54,7 @@ def download_wrapper(
os.makedirs(output_dir, exist_ok=True)

# Check for existing .json.bz2 files
if check_existing_lexeme_dump(output_dir):
if check_lexeme_dump_prompt_download(output_dir):
return

filename = dump_url.split("/")[-1]
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 @@ -626,7 +626,7 @@ def camel_to_snake(name: str) -> str:
# MARK : Check Dump


def check_existing_lexeme_dump(output_dir):
def check_lexeme_dump_prompt_download(output_dir):
existing_dumps = list(Path(output_dir).glob("*.json.bz2"))
if existing_dumps:
rprint("[bold yellow]Existing dump files found:[/bold yellow]")
Expand Down

0 comments on commit 1b0d6fa

Please sign in to comment.