Fix: archivage PV: bug encoding

This commit is contained in:
Emmanuel Viennet 2022-06-27 19:20:26 +02:00
parent fa3ea025ed
commit aa138133dc

View File

@ -362,7 +362,11 @@ def do_formsemestre_archive(
# Decisions de jury, en XLS
data = sco_pvjury.formsemestre_pvjury(formsemestre_id, format="xls", publish=False)
if data:
PVArchive.store(archive_id, "Decisions_Jury" + scu.XLSX_SUFFIX, data)
PVArchive.store(
archive_id,
"Decisions_Jury" + scu.XLSX_SUFFIX,
data.encode(scu.SCO_ENCODING),
)
# Classeur bulletins (PDF)
data, _ = sco_bulletins_pdf.get_formsemestre_bulletins_pdf(
formsemestre_id, version=bulVersion