diff --git a/notes_table.py b/notes_table.py index bdb3030046..004c60d95b 100644 --- a/notes_table.py +++ b/notes_table.py @@ -896,8 +896,10 @@ class NotesTable: sum_coefs_ue = 0 for mu in moy_ues.values(): # mu["moy"] can be a number, or "NA", or "ERR" (user-defined UE formulas) - if isnumber(mu["moy"]) and ( - mu["est_inscrit"] or mu["is_capitalized"] + if ( + (mu["ue"]["type"] != UE_SPORT) + and isnumber(mu["moy"]) + and (mu["est_inscrit"] or mu["is_capitalized"]) ): coef_ue = mu["ue"]["coefficient"] sum_moy_ue += mu["moy"] * coef_ue