From 687d5d65695994eec80c5f06a97e6876c145732f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 20 Jan 2022 13:14:04 +0100 Subject: [PATCH] =?UTF-8?q?BUT:=20Evite=20de=20planter=20si=20UE=20de=20pl?= =?UTF-8?q?usieurs=20semestres=20dans=20le=20m=C3=AAme=20formsemestre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/notes_table.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/scodoc/notes_table.py b/app/scodoc/notes_table.py index 2209aea7de..4d586c2cc4 100644 --- a/app/scodoc/notes_table.py +++ b/app/scodoc/notes_table.py @@ -1359,7 +1359,11 @@ class NotesTable: t[0] = results.etud_moy_gen[etudid] for i, ue in enumerate(ues, start=1): if ue["type"] != UE_SPORT: - t[i] = results.etud_moy_ue[ue["id"]][etudid] + # temporaire pour 9.1.29 ! + if ue["id"] in results.etud_moy_ue: + t[i] = results.etud_moy_ue[ue["id"]][etudid] + else: + t[i] = "" # re-trie selon la nouvelle moyenne générale: self.T.sort(key=self._row_key) # Remplace aussi le rang: