Skip to content

Commit

Permalink
Parameter name change to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
linearcombination committed Nov 19, 2024
1 parent 5c7a06a commit 3ed113d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/document/domain/resource_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@lru_cache(maxsize=2)
def fetch_source_data(
json_file_name: str = SOURCE_DATA_JSON_FILENAME,
working_dir: str = settings.RESOURCE_ASSETS_DIR,
assets_dir: str = settings.RESOURCE_ASSETS_DIR,
) -> Any:
"""
Obtain the source data, by downloading it from json_file_url, and
Expand All @@ -45,7 +45,7 @@ def fetch_source_data(
>>> result["git_repo"][0]
{'repo_url': 'https://content.bibletranslationtools.org/klero/ach-SS-acholi_tit_text_reg', 'content': {'resource_type': 'reg', 'language': {'english_name': 'Acholi', 'ietf_code': 'ach-SS-acholi', 'national_name': 'Acholi', 'direction': 'ltr'}}}
"""
json_file_path = join(working_dir, json_file_name)
json_file_path = join(assets_dir, json_file_name)
data = None
if file_needs_update(json_file_path):
logger.debug("About to download %s...", json_file_name)
Expand Down

0 comments on commit 3ed113d

Please sign in to comment.