Skip to content

Commit

Permalink
Fix file access issue for individual ical download
Browse files Browse the repository at this point in the history
  • Loading branch information
mschabhuettl committed Oct 13, 2023
1 parent 6ae8758 commit 05edc32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def download_individual(person_name: str):
# Write the individual ICS content to the file
with open(ics_path, 'wb') as icsf:
icsf.write(ical_content.encode())
icsf.close()

return send_file(ics_path, as_attachment=True, download_name=f"{filename}.ics")

Expand Down

0 comments on commit 05edc32

Please sign in to comment.