diff --git a/app/scodoc/sco_edit_apc.py b/app/scodoc/sco_edit_apc.py index dba8397134..60961c3e7a 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 e64477e341..d53dde6fd8 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