forked from ScoDoc/ScoDoc
PE: petite optimisation => accélération x 50
This commit is contained in:
parent
7923921777
commit
6bd9bb0127
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user