From 92bd46d1d535bcb0522cdd3b16438e39633fcba1 Mon Sep 17 00:00:00 2001 From: lehmann Date: Thu, 30 Jun 2022 16:54:06 +0200 Subject: [PATCH] =?UTF-8?q?0=20=C3=A0=20la=20place=20de=20-=20si=200=20ECT?= =?UTF-8?q?S?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/releve-but.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index 1550f889..52651458 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -227,7 +227,7 @@ class releveBUT extends HTMLElement { if (data.semestre.decision?.code) { this.shadow.querySelector(".decision").innerHTML = "Décision jury: " + (data.semestre.decision?.code || ""); } - this.shadow.querySelector("#ects_tot").innerHTML = "ECTS : " + (data.semestre.ECTS?.acquis || "-") + " / " + (data.semestre.ECTS?.total || "-"); + this.shadow.querySelector("#ects_tot").innerHTML = "ECTS : " + (data.semestre.ECTS?.acquis ?? "-") + " / " + (data.semestre.ECTS?.total ?? "-"); } /*******************************/ @@ -254,13 +254,13 @@ class releveBUT extends HTMLElement { ${ue}${(dataUE.titre) ? " - " + dataUE.titre : ""}
-
Moyenne : ${dataUE.moyenne?.value || "-"}
+
Moyenne : ${dataUE.moyenne?.value ?? "-"}
Rang : ${dataUE.moyenne?.rang} / ${dataUE.moyenne?.total}
Bonus : ${dataUE.bonus || 0} - Malus : ${dataUE.malus || 0}  - - ECTS : ${dataUE.ECTS?.acquis || "-"} / ${dataUE.ECTS?.total || "-"} + ECTS : ${dataUE.ECTS?.acquis ?? "-"} / ${dataUE.ECTS?.total ?? "-"}
`;