Skip to content

Commit

Permalink
Tools: Fix keeping country codes data file
Browse files Browse the repository at this point in the history
  • Loading branch information
cal0pteryx committed Feb 6, 2024
1 parent 477df54 commit 0026225
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions tools/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,18 @@ def prepare_provider_data_files() -> None:
# in order to clean up directories
shutil.copytree(STATIC_PATH / "logo", DOWNLOAD_PATH / "logo")
shutil.copytree(STATIC_PATH / "images", DOWNLOAD_PATH / "images")
shutil.copyfile(
DATA_PATH / "recommended_clients.json",
DOWNLOAD_PATH / "recommended_clients.json",
)
shutil.copyfile(
DATA_PATH / "api_version.json",
DOWNLOAD_PATH / "api_version.json",
)
shutil.copyfile(
DATA_PATH / "country_codes.json",
DOWNLOAD_PATH / "country_codes.json",
)
shutil.copyfile(
DATA_PATH / "recommended_clients.json",
DOWNLOAD_PATH / "recommended_clients.json",
)

initialize_directory(STATIC_PATH)
initialize_directory(DATA_PATH)
Expand All @@ -77,14 +81,18 @@ def prepare_provider_data_files() -> None:

shutil.copytree(DOWNLOAD_PATH / "logo", STATIC_PATH / "logo")
shutil.copytree(DOWNLOAD_PATH / "images", STATIC_PATH / "images")
shutil.copyfile(
DOWNLOAD_PATH / "recommended_clients.json",
DATA_PATH / "recommended_clients.json",
)
shutil.copyfile(
DOWNLOAD_PATH / "api_version.json",
DATA_PATH / "api_version.json",
)
shutil.copyfile(
DOWNLOAD_PATH / "country_codes.json",
DATA_PATH / "country_codes.json",
)
shutil.copyfile(
DOWNLOAD_PATH / "recommended_clients.json",
DATA_PATH / "recommended_clients.json",
)


def _get_filtered_providers_data() -> None:
Expand Down

0 comments on commit 0026225

Please sign in to comment.