1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-18 20:39:36 +02:00

Adjust batch size in download-countries command for improved processing efficiency; update installer banner for better visual alignment.

This commit is contained in:
Sean Morley 2025-05-27 09:59:15 -04:00
parent d34a9001c0
commit 37866660d3
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class Command(BaseCommand):
def handle(self, **options):
force = options['force']
batch_size = 1000 # Larger batch size for better efficiency
batch_size = 500 # Larger batch size for better efficiency
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: