Skip to content

Commit

Permalink
fix bug download
Browse files Browse the repository at this point in the history
fix bug download
  • Loading branch information
thonusbart committed Sep 4, 2024
1 parent 08f62a6 commit 3658d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liwo_services/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ def download_zip():
zip_stream = liwo_services.export.add_result_to_zip(result, url, data_dir)

resp = flask.send_file(
zip_stream,
path_or_file=zip_stream,
mimetype="application/zip",
attachment_filename="{}.zip".format(name),
download_name="{}.zip".format(name),
as_attachment=True,
)
return resp
Expand Down

0 comments on commit 3658d33

Please sign in to comment.