From a13c305a2b7de0eb98bbdf91c97fd4cd7331d0cc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 21:04:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tilavarauspalvelu/admin/reservation_unit/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tilavarauspalvelu/admin/reservation_unit/admin.py b/tilavarauspalvelu/admin/reservation_unit/admin.py index 812300881..1916be3f5 100644 --- a/tilavarauspalvelu/admin/reservation_unit/admin.py +++ b/tilavarauspalvelu/admin/reservation_unit/admin.py @@ -238,7 +238,7 @@ def export_to_csv(self, request, queryset): else: # Filehandler needs to be left open for Django to be able to stream the file # Should fix the exporter to use an in-memory stream instead of writing to a file. - return FileResponse(open(path, "rb")) # noqa: SIM115 + return FileResponse(open(path, "rb")) def save_model(self, request, obj, form, change) -> None: super().save_model(request, obj, form, change)