From 04d1fbe272ed6b3f9d45a6340829b5d9c8a5e110 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 29 Jan 2024 22:33:06 +0100 Subject: [PATCH] col etudid in formsemestre_poursuite_report. Fix #849 --- app/scodoc/sco_poursuite_dut.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_poursuite_dut.py b/app/scodoc/sco_poursuite_dut.py index ba866e220..2ada0c6b2 100644 --- a/app/scodoc/sco_poursuite_dut.py +++ b/app/scodoc/sco_poursuite_dut.py @@ -197,13 +197,15 @@ def formsemestre_poursuite_report(formsemestre_id, fmt="html"): info = etud_get_poursuite_info(sem, etud) idd = _flatten_info(info) # On recupere la totalite des UEs dans ids - for id in idd: - if id not in ids: - ids += [id] + for key in idd: + if key not in ids: + ids += [key] + info["etudid"] = etud["etudid"] infos.append(info) # column_ids = ( - ("civilite_str", "nom", "prenom", "annee", "date_naissance") + (("etudid",) if fmt.startswith("xls") else ()) + + ("civilite_str", "nom", "prenom", "annee", "date_naissance") + tuple(ids) + ("debouche",) )