From 535794ea4e6ad9de0f49050b674a855a471f4880 Mon Sep 17 00:00:00 2001 From: rikuke <33894149+rikuke@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:12:22 +0300 Subject: [PATCH] fix: whitespace crash in alteration csv (#3306) --- backend/benefit/applications/api/v1/application_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/benefit/applications/api/v1/application_views.py b/backend/benefit/applications/api/v1/application_views.py index 5290fd6c64..d9400580af 100755 --- a/backend/benefit/applications/api/v1/application_views.py +++ b/backend/benefit/applications/api/v1/application_views.py @@ -530,7 +530,7 @@ def _alterations_csv_response( csv_service = ApplicationAlterationCsvService(queryset, config, user) response = HttpResponse( - csv_service.get_csv_string(True).encode("utf-8"), + csv_service.get_csv_string(False).encode("utf-8"), content_type="text/csv", ) response["Content-Disposition"] = "attachment; filename={filename}.csv".format(