From 65d3fe1482fd7a24d32055bee3791bc482b92ffc Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 1 Nov 2022 09:32:35 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20r=C3=A9siste=20aux=20m=C3=A9langes=20de?= =?UTF-8?q?=20r=C3=A9f=C3=A9rentiels=20de=20comp=C3=A9tences...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comp/res_but.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/comp/res_but.py b/app/comp/res_but.py index 0ee8b0668..7b8a20576 100644 --- a/app/comp/res_but.py +++ b/app/comp/res_but.py @@ -224,11 +224,9 @@ class ResultatsSemestreBUT(NotesTableCompat): ).filter_by(semestre_idx=self.formsemestre.semestre_id) } for etudid in etuds_parcour_id: - parcour = etuds_parcour_id[etudid] - if parcour is not None: - ues_inscr_parcours_df.loc[etudid] = ue_by_parcours[ - etuds_parcour_id[etudid] - ] + parcour_id = etuds_parcour_id[etudid] + if parcour_id is not None and parcour_id in ue_by_parcours: + ues_inscr_parcours_df.loc[etudid] = ue_by_parcours[parcour_id] return ues_inscr_parcours_df def etud_ues_ids(self, etudid: int) -> list[int]: