1
0
forked from ScoDoc/ScoDoc

Fix: export recap en CSV

This commit is contained in:
Emmanuel Viennet 2021-02-16 15:22:50 +01:00
parent 5aacc2db63
commit cf83228dcb

View File

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