1
0
forked from ScoDoc/ScoDoc

Fix: ancien mode de calcul nt / cmp py3

This commit is contained in:
Emmanuel Viennet 2022-01-19 23:56:32 +01:00
parent 908f78477d
commit e5fb9f4365

View File

@ -814,7 +814,12 @@ class NotesTable:
moy_ue_cap = ue_cap["moy"] moy_ue_cap = ue_cap["moy"]
mu["was_capitalized"] = True mu["was_capitalized"] = True
event_date = event_date or ue_cap["event_date"] event_date = event_date or ue_cap["event_date"]
if (moy_ue_cap != "NA") and (moy_ue_cap > max_moy_ue): if (
(moy_ue_cap != "NA")
and isinstance(moy_ue_cap, float)
and isinstance(max_moy_ue, float)
and (moy_ue_cap > max_moy_ue)
):
# meilleure UE capitalisée # meilleure UE capitalisée
event_date = ue_cap["event_date"] event_date = ue_cap["event_date"]
max_moy_ue = moy_ue_cap max_moy_ue = moy_ue_cap