From a060cefbe8f425b64e6409716b116890da2ae8ea Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 3 Sep 2021 17:09:16 +0200 Subject: [PATCH] fix bug costes: bulletins/comparaison int/string --- app/scodoc/sco_bulletins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_bulletins.py b/app/scodoc/sco_bulletins.py index 2c346123c..ab50b6bee 100644 --- a/app/scodoc/sco_bulletins.py +++ b/app/scodoc/sco_bulletins.py @@ -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"