From 6252f3cf14e6802eaf8bfe417da2f76d5c972624 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 13 Jan 2025 11:19:45 -0500 Subject: [PATCH] fix: reduce batch size for country downloads from 100 to 10 --- .../worldtravel/management/commands/download-countries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server/worldtravel/management/commands/download-countries.py b/backend/server/worldtravel/management/commands/download-countries.py index 70ca2b29..4968e2f8 100644 --- a/backend/server/worldtravel/management/commands/download-countries.py +++ b/backend/server/worldtravel/management/commands/download-countries.py @@ -42,7 +42,7 @@ class Command(BaseCommand): def handle(self, **options): force = options['force'] - batch_size = 100 + batch_size = 10 countries_json_path = os.path.join(settings.MEDIA_ROOT, f'countries+regions+states-{COUNTRY_REGION_JSON_VERSION}.json') if not os.path.exists(countries_json_path) or force: res = requests.get(f'https://raw.githubusercontent.com/dr5hn/countries-states-cities-database/{COUNTRY_REGION_JSON_VERSION}/json/countries%2Bstates%2Bcities.json')