forked from ScoDoc/DocScoDoc
Fix: ancien mode de calcul nt / cmp py3
This commit is contained in:
parent
908f78477d
commit
e5fb9f4365
@ -814,7 +814,12 @@ class NotesTable:
|
||||
moy_ue_cap = ue_cap["moy"]
|
||||
mu["was_capitalized"] = True
|
||||
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
|
||||
event_date = ue_cap["event_date"]
|
||||
max_moy_ue = moy_ue_cap
|
||||
|
Loading…
Reference in New Issue
Block a user