From 2c8eee1432bc384cae397a2f1457272cfe2959c9 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 10 Feb 2022 14:46:52 +0100 Subject: [PATCH] Fix (jury) --- app/pe/pe_semestretag.py | 3 ++- app/scodoc/sco_pvjury.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/pe/pe_semestretag.py b/app/pe/pe_semestretag.py index baa12b117..695bbe5e6 100644 --- a/app/pe/pe_semestretag.py +++ b/app/pe/pe_semestretag.py @@ -303,7 +303,8 @@ class SemestreTag(pe_tagtable.TableTag): def get_ue_capitalisees(self, etudid) -> list[UniteEns]: """Renvoie la liste des ue_id effectivement capitalisées par un étudiant""" ue_ids = [ - ue_id for ue_id in self.nt.validations.ue_capitalisees.loc[etudid]["ue_id"] + ue_id + for ue_id in self.nt.validations.ue_capitalisees.loc[[etudid]]["ue_id"] ] return [UniteEns.query.get(ue_id) for ue_id in ue_ids] diff --git a/app/scodoc/sco_pvjury.py b/app/scodoc/sco_pvjury.py index 828719080..78ec14394 100644 --- a/app/scodoc/sco_pvjury.py +++ b/app/scodoc/sco_pvjury.py @@ -102,7 +102,7 @@ def _descr_decisions_ues(nt, etudid, decisions_ue, decision_sem): log("descr_decisions_ues: ue_id=%s decisions_ue=%s" % (ue_id, decisions_ue)) # Les UE capitalisées dans d'autres semestres: if etudid in nt.validations.ue_capitalisees.index: - for ue_id in nt.validations.ue_capitalisees.loc[etudid]["ue_id"]: + for ue_id in nt.validations.ue_capitalisees.loc[[etudid]]["ue_id"]: try: uelist.append(nt.get_etud_ue_status(etudid, ue_id)["ue"]) except KeyError: