Adjust batch size in download-countries command for improved processing efficiency; update installer banner for better visual alignment.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -55,7 +55,7 @@ print_banner() {
|
||||
cat << 'EOF'
|
||||
╔══════════════════════════════════════════════════════════════════════╗
|
||||
║ ║
|
||||
║ 🌍 A D V E N T U R E L O G I N S T A L L E R ║
|
||||
║ 🌍 A D V E N T U R E L O G I N S T A L L E R ║
|
||||
║ ║
|
||||
║ The Ultimate Travel Companion ║
|
||||
║ ║
|
||||
|
||||
Reference in New Issue
Block a user