fix bug costes: bulletins/comparaison int/string

This commit is contained in:
Emmanuel Viennet 2021-09-03 17:09:16 +02:00
parent 5d32b9f706
commit a060cefbe8

View File

@ -513,7 +513,7 @@ def _ue_mod_bulletin(etudid, formsemestre_id, ue_id, modimpls, nt, version):
val = e["notes"].get(etudid, {"value": "NP"})[
"value"
] # NA si etud demissionnaire
if val > 0 or val == "NP":
if val == "NP" or val > 0:
e["name"] = "Points de malus sur cette UE"
else:
e["name"] = "Points de bonus sur cette UE"