From 1af92ad6ac9566890ea61e66c7e05c2157aea0c2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 17 Dec 2022 10:09:55 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20affichage=20d'une=20UE=20capitalis=C3=A9?= =?UTF-8?q?e=20sans=20ECTS=20(None)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_bulletins_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_bulletins_json.py b/app/scodoc/sco_bulletins_json.py index a1908bd42..675737c66 100644 --- a/app/scodoc/sco_bulletins_json.py +++ b/app/scodoc/sco_bulletins_json.py @@ -278,7 +278,7 @@ def formsemestre_bulletinetud_published_dict( # UE capitalisée (listée seulement si meilleure que l'UE courante) if ue_status["is_capitalized"]: try: - ects_txt = str(int(ue_status["ue"].get("ects", ""))) + ects_txt = str(int(ue_status["ue"].get("ects", "") or 0.0)) except ValueError: ects_txt = "" d["ue_capitalisee"].append(