Skip to content

Commit

Permalink
Use specific github tag/release to serve dictionaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJaume committed Jan 25, 2023
1 parent 7de54b9 commit 3ae8e43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## FastSpell 0.6.1:
### Changed:
- Trigger fasttext download in fastspell-download command.
- Use specific github tag/release to store dictionaries.

## FastSpell 0.6:
### Added:
Expand Down
2 changes: 1 addition & 1 deletion src/fastspell/fastspell_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def download_dictionaries(dest, lang_codes: dict, force=False):
''' Download dictionaries from github '''
repo_url = "https://github.com/mbanon/fastspell/releases/latest/download/fastspell_dictionaries.tgz"
repo_url = "https://github.com/mbanon/fastspell/releases/download/dictionaries_v1/fastspell_dictionaries.tgz"

if not os.path.exists(dest):
raise RuntimeError(f"Download directory '{dest}' does not exist")
Expand Down

0 comments on commit 3ae8e43

Please sign in to comment.