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)
|
||||||
|
@ -599,7 +599,7 @@ class PlacementRunner:
|
|||||||
ws0.set_column_dimension_width("A", 750 * column_width_ratio)
|
ws0.set_column_dimension_width("A", 750 * column_width_ratio)
|
||||||
for col in range(nb_rangs):
|
for col in range(nb_rangs):
|
||||||
ws0.set_column_dimension_width(
|
ws0.set_column_dimension_width(
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[col + 1: col + 2], width
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[col + 1 : col + 2], width
|
||||||
)
|
)
|
||||||
|
|
||||||
SheetName1 = "Positions"
|
SheetName1 = "Positions"
|
||||||
|
Loading…
Reference in New Issue
Block a user