From 0324771aa26f38ae0a3ef0c1c3c5053d5ad1a43e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 7 Dec 2022 20:05:11 +0100 Subject: [PATCH] =?UTF-8?q?=C3=A9vite=20pandas=20FutureWarning,=20et=20con?= =?UTF-8?q?sid=C3=A8re=20que=20dans=20les=20parcours=20sans=20UE,=20les=20?= =?UTF-8?q?=C3=A9tudiants=20sont=20inscrits=20=C3=A0=20toutes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/comp/res_but.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/comp/res_but.py b/app/comp/res_but.py index bd889111..253cae49 100644 --- a/app/comp/res_but.py +++ b/app/comp/res_but.py @@ -235,7 +235,8 @@ class ResultatsSemestreBUT(NotesTableCompat): for etudid in etuds_parcour_id: 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] + if ue_by_parcours[parcour_id]: + 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]: