From d93ce9e9be35d5b85a6073da021dc200c864ec75 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 2 Sep 2022 17:49:46 +0200 Subject: [PATCH] groups_auto_repartition: add check (UI) --- app/scodoc/sco_groups.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_groups.py b/app/scodoc/sco_groups.py index 737c95e1..a17d0878 100644 --- a/app/scodoc/sco_groups.py +++ b/app/scodoc/sco_groups.py @@ -1454,7 +1454,8 @@ def groups_auto_repartition(partition_id=None): # Crée les nouveaux groupes group_ids = [] for group_name in group_names: - group_ids.append(create_group(partition_id, group_name).id) + if group_name.strip(): + group_ids.append(create_group(partition_id, group_name).id) # nt: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre) identdict = nt.identdict