From 69d494c02cd85bd7a1a33764bafa5c928338ee7c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 14 Jan 2022 11:18:31 +0100 Subject: [PATCH] Fix: evaluation_listenotes si aucun inscrit --- app/scodoc/sco_liste_notes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_liste_notes.py b/app/scodoc/sco_liste_notes.py index f19c95680..dace96b0b 100644 --- a/app/scodoc/sco_liste_notes.py +++ b/app/scodoc/sco_liste_notes.py @@ -201,6 +201,7 @@ def do_evaluation_listenotes( note_sur_20 = tf[2]["note_sur_20"] hide_groups = tf[2]["hide_groups"] with_emails = tf[2]["with_emails"] + group_ids = [x for x in tf[2]["group_ids"] if x != ""] return ( _make_table_notes( tf[1], @@ -208,7 +209,7 @@ def do_evaluation_listenotes( format=format, note_sur_20=note_sur_20, anonymous_listing=anonymous_listing, - group_ids=tf[2]["group_ids"], + group_ids=group_ids, hide_groups=hide_groups, with_emails=with_emails, mode=mode,