From 995b90416479a1119f0e5fb47d0c3dfdb63996f7 Mon Sep 17 00:00:00 2001 From: viennet Date: Wed, 2 Dec 2020 10:01:07 +0100 Subject: [PATCH] Fix title on archived PVs --- sco_archives.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sco_archives.py b/sco_archives.py index e79cde6ac..17be7cc67 100644 --- a/sco_archives.py +++ b/sco_archives.py @@ -259,6 +259,7 @@ def do_formsemestre_archive( numeroArrete=None, VDICode=None, showTitle=False, + pv_title=None, with_paragraph_nom=False, anonymous=False, bulVersion="long", @@ -280,13 +281,13 @@ def do_formsemestre_archive( etudids = [m["etudid"] for m in groups_infos.members] # Tableau recap notes en XLS (pour tous les etudiants, n'utilise pas les groupes) - data, filename, format = make_formsemestre_recapcomplet( + data, _, _ = make_formsemestre_recapcomplet( context, REQUEST, formsemestre_id, format="xls" ) if data: PVArchive.store(archive_id, "Tableau_moyennes.xls", data) # Tableau recap notes en HTML (pour tous les etudiants, n'utilise pas les groupes) - data, filename, format = make_formsemestre_recapcomplet( + data, _, _ = make_formsemestre_recapcomplet( context, REQUEST, formsemestre_id, format="html", disable_etudlink=True ) if data: @@ -307,7 +308,7 @@ def do_formsemestre_archive( PVArchive.store(archive_id, "Tableau_moyennes.html", data) # Bulletins en XML (pour tous les etudiants, n'utilise pas les groupes) - data, filename, format = make_formsemestre_recapcomplet( + data, _, _ = make_formsemestre_recapcomplet( context, REQUEST, formsemestre_id, format="xml", xml_with_decisions=True ) if data: @@ -348,6 +349,7 @@ def do_formsemestre_archive( numeroArrete=numeroArrete, VDICode=VDICode, showTitle=showTitle, + pv_title=pv_title, with_paragraph_nom=with_paragraph_nom, anonymous=anonymous, ) @@ -467,6 +469,7 @@ enregistrés et non modifiables, on peut les retrouver ultérieurement. signature=signature, numeroArrete=tf[2]["numeroArrete"], VDICode=tf[2]["VDICode"], + pv_title=tf[2]["pv_title"], showTitle=tf[2]["showTitle"], with_paragraph_nom=tf[2]["with_paragraph_nom"], anonymous=tf[2]["anonymous"],