From 9a7667fd629727a226fcb8cd9f7db99477d84d98 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Mon, 13 Jan 2025 11:24:25 -0500 Subject: [PATCH] fix: increase batch size for country downloads from 10 to 250 --- .../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 85d364a..97ffe3d 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 = 10 + batch_size = 250 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')