forked from ScoDoc/ScoDoc
blackify + suppress cr-at-eol
This commit is contained in:
parent
42ef9f795f
commit
44117fb0e2
@ -68,10 +68,11 @@ class COLORS(Enum):
|
|||||||
def send_from_flask(data, filename, mime=scu.XLSX_MIMETYPE):
|
def send_from_flask(data, filename, mime=scu.XLSX_MIMETYPE):
|
||||||
filename = scu.make_filename(filename)
|
filename = scu.make_filename(filename)
|
||||||
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
|
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.
|
||||||
(on ne doit rien avoir émis avant, car ici sont générés les entetes)
|
(on ne doit rien avoir émis avant, car ici sont générés les entetes)
|
||||||
|
Loading…
Reference in New Issue
Block a user