Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Dec 5, 2024
1 parent ff25448 commit ba72934
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions chellow/e/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ def dc_batch_file_download_get(file_id):
batch_file = BatchFile.get_by_id(g.sess, file_id)

output = make_response(batch_file.data)
output.headers[
"Content-Disposition"
] = f'attachment; filename="{batch_file.filename}"'
output.headers["Content-Disposition"] = (
f'attachment; filename="{batch_file.filename}"'
)
output.headers["Content-type"] = "application/octet-stream"
return output

Expand Down Expand Up @@ -2818,9 +2818,9 @@ def mop_batch_file_download_get(file_id):
batch_file = BatchFile.get_by_id(g.sess, file_id)

output = make_response(batch_file.data)
output.headers[
"Content-Disposition"
] = f'attachment; filename="{batch_file.filename}"'
output.headers["Content-Disposition"] = (
f'attachment; filename="{batch_file.filename}"'
)
output.headers["Content-type"] = "application/octet-stream"
return output

Expand Down Expand Up @@ -5024,9 +5024,9 @@ def supplier_batch_file_download_get(file_id):
batch_file = BatchFile.get_by_id(g.sess, file_id)

output = make_response(batch_file.data)
output.headers[
"Content-Disposition"
] = f'attachment; filename="{batch_file.filename}"'
output.headers["Content-Disposition"] = (
f'attachment; filename="{batch_file.filename}"'
)
output.headers["Content-type"] = "application/octet-stream"
return output

Expand Down

0 comments on commit ba72934

Please sign in to comment.