From 77be33d04689c6f14d5c32e9da75ee7d0fb39e44 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 12 Dec 2021 08:40:25 +0100 Subject: [PATCH] Fix #74 --- app/scodoc/sco_liste_notes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_liste_notes.py b/app/scodoc/sco_liste_notes.py index 70a0fb94a..fd4181ea9 100644 --- a/app/scodoc/sco_liste_notes.py +++ b/app/scodoc/sco_liste_notes.py @@ -717,7 +717,9 @@ def _add_eval_columns( row_note_max[evaluation_id] = "/ %s" % nmax if nb_notes > 0: - row_moys[evaluation_id] = "%.3g" % (sum_notes / nb_notes) + row_moys[evaluation_id] = scu.fmt_note( + sum_notes / nb_notes, keep_numeric=keep_numeric + ) row_moys[ "_" + str(evaluation_id) + "_help" ] = "moyenne sur %d notes (%s le %s)" % (