From 6bd9bb012771631bb642d5470ed075e55d72f2cb Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 11 Feb 2022 23:22:07 +0100 Subject: [PATCH] =?UTF-8?q?PE:=20petite=20optimisation=20=3D>=20acc=C3=A9l?= =?UTF-8?q?=C3=A9ration=20x=2050?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pe/pe_jurype.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/pe/pe_jurype.py b/app/pe/pe_jurype.py index bccd12f19..d29d040ff 100644 --- a/app/pe/pe_jurype.py +++ b/app/pe/pe_jurype.py @@ -177,6 +177,8 @@ class JuryPE(object): self.PARCOURSINFO_DICT = {} # Les parcours des étudiants self.syntheseJury = {} # Le jury de synthèse + self.semestresDeScoDoc = sco_formsemestre.do_formsemestre_list() + # Calcul du jury PE self.exe_calculs_juryPE(semBase) self.synthetise_juryPE() @@ -489,14 +491,14 @@ class JuryPE(object): lastdate = max(sesdates) # date de fin de l'inscription la plus récente # if PETable.AFFICHAGE_DEBUG_PE == True : pe_tools.pe_print(" derniere inscription = ", lastDateSem) - semestresDeScoDoc = sco_formsemestre.do_formsemestre_list() + if sonDernierSidValide is None: # si l'étudiant n'a validé aucun semestre, les prend tous ? (à vérifier) - semestresSuperieurs = semestresDeScoDoc + semestresSuperieurs = self.semestresDeScoDoc else: semestresSuperieurs = [ sem - for sem in semestresDeScoDoc + for sem in self.semestresDeScoDoc if sem["semestre_id"] > sonDernierSidValide ] # Semestre de rang plus élevé que son dernier sem valide datesDesSemestresSuperieurs = [