forked from ScoDoc/ScoDoc
Fix: bug Mulhouse
This commit is contained in:
parent
16b9962807
commit
7afca61d3d
@ -215,10 +215,6 @@ class ResultatsSemestre(ResultatsCache):
|
||||
"""L'état de l'UE pour cet étudiant.
|
||||
Result: dict, ou None si l'UE n'est pas dans ce semestre.
|
||||
"""
|
||||
if not ue_id in self.etud_moy_ue:
|
||||
return None
|
||||
if not self.validations:
|
||||
self.validations = res_sem.load_formsemestre_validations(self.formsemestre)
|
||||
ue = UniteEns.query.get(ue_id) # TODO cacher nos UEs ?
|
||||
if ue.type == UE_SPORT:
|
||||
return {
|
||||
@ -233,6 +229,10 @@ class ResultatsSemestre(ResultatsCache):
|
||||
"capitalized_ue_id": None,
|
||||
"ects_pot": 0.0,
|
||||
}
|
||||
if not ue_id in self.etud_moy_ue:
|
||||
return None
|
||||
if not self.validations:
|
||||
self.validations = res_sem.load_formsemestre_validations(self.formsemestre)
|
||||
cur_moy_ue = self.etud_moy_ue[ue_id][etudid]
|
||||
moy_ue = cur_moy_ue
|
||||
is_capitalized = False
|
||||
|
Loading…
Reference in New Issue
Block a user