From 44d56f24931bac6aa45f88435e375e0d03c759c4 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 21 Jun 2023 17:19:27 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20affichage=20dans=20=C3=A9dition=20ECTS?= =?UTF-8?q?=20UEs=20par=20parcours?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_edit_apc.py | 2 +- app/templates/pn/form_ues.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_edit_apc.py b/app/scodoc/sco_edit_apc.py index dba83971..60961c3e 100644 --- a/app/scodoc/sco_edit_apc.py +++ b/app/scodoc/sco_edit_apc.py @@ -82,7 +82,7 @@ def html_edit_formation_apc( if None in ects: ects_by_sem[semestre_idx] = 'manquant' else: - ects_by_sem[semestre_idx] = sum(ects) + ects_by_sem[semestre_idx] = f"{sum(ects):g}" arrow_up, arrow_down, arrow_none = sco_groups.get_arrow_icons_tags() diff --git a/app/templates/pn/form_ues.j2 b/app/templates/pn/form_ues.j2 index e64477e3..d53dde6f 100644 --- a/app/templates/pn/form_ues.j2 +++ b/app/templates/pn/form_ues.j2 @@ -2,7 +2,7 @@ {% for semestre_idx in semestre_ids %}
Unités d'Enseignement - semestre {{semestre_idx}}  -  {{"%g"|format(ects_by_sem[semestre_idx]) | safe}} ECTS + semestre {{semestre_idx}}  -  {{ects_by_sem[semestre_idx] | safe}} ECTS