1
0
forked from ScoDoc/ScoDoc

Fix: bug export csv

This commit is contained in:
viennet 2020-10-05 22:45:32 +02:00
parent b2a643705f
commit ba7ae269a7

View File

@ -716,7 +716,7 @@ def make_formsemestre_recapcomplet(
H.append("</table>") H.append("</table>")
return "\n".join(H), "", "html" return "\n".join(H), "", "html"
elif format == "csv": elif format == "csv":
CSV = CSV_LINESEP.join([CSV_FIELDSEP.join(x) for x in F]) CSV = CSV_LINESEP.join([CSV_FIELDSEP.join(str(x)) for x in F])
semname = sem["titre_num"].replace(" ", "_") semname = sem["titre_num"].replace(" ", "_")
date = time.strftime("%d-%m-%Y") date = time.strftime("%d-%m-%Y")
filename = "notes_modules-%s-%s.csv" % (semname, date) filename = "notes_modules-%s-%s.csv" % (semname, date)