diff --git a/apps/entry/views.py b/apps/entry/views.py index 3d116cab7..107bc56b6 100644 --- a/apps/entry/views.py +++ b/apps/entry/views.py @@ -136,8 +136,8 @@ def get_idu_data(filters=None): ), ), displacement_occurred_transformed=Case( - When(displacement_occurred=0, then=Value("Displacement due to preventive evacuation")), - When(displacement_occurred__in=[1, 2, 3], then=Value("Displacement without preventive evacuation")), + When(displacement_occurred=0, then=Value("Displacement due to preventive evacuation reported")), + When(displacement_occurred__in=[1, 2, 3], then=Value("Displacement without preventive evacuation reported")), output_field=CharField() ), custom_figure_text=Case( diff --git a/apps/gidd/views.py b/apps/gidd/views.py index a47038f2f..7d39dbd4e 100644 --- a/apps/gidd/views.py +++ b/apps/gidd/views.py @@ -207,6 +207,7 @@ def export(self, request): response = HttpResponse(content=save_virtual_workbook(wb)) filename = 'IDMC_GIDD_Disasters_Internal_Displacement_Data.xlsx' response['Content-Disposition'] = f'attachment; filename={filename}' + response['Content-Type'] = 'application/octet-stream' return response @@ -577,6 +578,7 @@ def export(self, request): response = HttpResponse(content=save_virtual_workbook(wb)) filename = 'IDMC_Internal_Displacement_Conflict-Violence_Disasters.xlsx' response['Content-Disposition'] = f'attachment; filename={filename}' + response['Content-Type'] = 'application/octet-stream' return response diff --git a/docker-compose.yml b/docker-compose.yml index ad9af7cd7..1789dd958 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -71,6 +71,11 @@ services: context: ./ dockerfile: worker.Dockerfile command: python manage.py run_celery_dev + # Fix 100% CPU usage on archlinux (https://github.com/goauthentik/authentik/pull/7762) + ulimits: + nofile: + soft: 10240 + hard: 10240 volumes: helix-db-13-data: diff --git a/helix/settings.py b/helix/settings.py index da81a61aa..0f989ba68 100644 --- a/helix/settings.py +++ b/helix/settings.py @@ -641,6 +641,7 @@ 'CONTACT': {'email': 'info@idmc.ch'}, "SWAGGER_UI_SETTINGS": { "deepLinking": True, + "syntaxHighlight": False, # Disabling syntax highlighting as it takes considerable time to load "persistAuthorization": True, "displayOperationId": True, },