From 002622555aa168a6e555130a7278e63001d8921b Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Tue, 6 Feb 2024 23:30:52 +0100 Subject: [PATCH] Tools: Fix keeping country codes data file --- tools/prepare.py | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/prepare.py b/tools/prepare.py index a4df64f..6a6eb34 100644 --- a/tools/prepare.py +++ b/tools/prepare.py @@ -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) @@ -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: