From 920de2c2f17468fbaf1b5e421d7fa87a9be72b0d Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 17 Aug 2022 18:24:18 +0200 Subject: [PATCH] API: /formsemestre//etudiants ne montre plus la partition par defaut. --- app/api/formsemestres.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/formsemestres.py b/app/api/formsemestres.py index ba09a2e4..d7397277 100644 --- a/app/api/formsemestres.py +++ b/app/api/formsemestres.py @@ -294,7 +294,9 @@ def formsemestre_etudiants(formsemestre_id: int, with_query: bool = False): # Ajout des groupes de chaque étudiants # XXX A REVOIR: trop inefficace ! for etud in etuds: - etud["groups"] = sco_groups.get_etud_groups(etud["id"], formsemestre_id) + etud["groups"] = sco_groups.get_etud_groups( + etud["id"], formsemestre_id, exclude_default=True + ) return jsonify(etuds)