From aa138133dce9b35c983fb72c9ceb5ca75b967cb0 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 27 Jun 2022 19:20:26 +0200 Subject: [PATCH] Fix: archivage PV: bug encoding --- app/scodoc/sco_archives.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_archives.py b/app/scodoc/sco_archives.py index 773fc0426..05f5f00ce 100644 --- a/app/scodoc/sco_archives.py +++ b/app/scodoc/sco_archives.py @@ -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