1
0
forked from ScoDoc/ScoDoc

excel file returned

This commit is contained in:
Jean-Marie Place 2021-09-12 09:31:07 +02:00
parent 7f63ab222b
commit c8872bd220
2 changed files with 433 additions and 548 deletions

View File

@ -70,7 +70,7 @@ def send_from_flask(data, filename, mime=scu.XLSX_MIMETYPE):
response = make_response(data) response = make_response(data)
response.headers['Content-Type'] = mime response.headers['Content-Type'] = mime
response.headers['Content-Disposition'] = 'attachment; filename="%s"' % filename response.headers['Content-Disposition'] = 'attachment; filename="%s"' % filename
return response
def send_excel_file(request, data, filename, mime=scu.XLSX_MIMETYPE): def send_excel_file(request, data, filename, mime=scu.XLSX_MIMETYPE):
"""publication fichier. """publication fichier.

File diff suppressed because it is too large Load Diff