1
0
forked from ScoDoc/ScoDoc

Fix: jury formation classique en cas de défaillance

This commit is contained in:
Emmanuel Viennet 2023-07-06 16:24:52 +02:00
parent 6c56b921e8
commit 41a791282a

View File

@ -381,7 +381,11 @@ class ResultatsSemestre(ResultatsCache):
was_capitalized = False
if etudid in self.validations.ue_capitalisees.index:
ue_cap = self._get_etud_ue_cap(etudid, ue)
if ue_cap and not np.isnan(ue_cap["moy_ue"]):
if (
ue_cap
and (ue_cap["moy_ue"] is not None)
and not np.isnan(ue_cap["moy_ue"])
):
was_capitalized = True
if ue_cap["moy_ue"] > cur_moy_ue or np.isnan(cur_moy_ue):
moy_ue = ue_cap["moy_ue"]