Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and github-actions[bot] committed Nov 11, 2024
1 parent cdc4a86 commit a13c305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tilavarauspalvelu/admin/reservation_unit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a13c305

Please sign in to comment.