From bf2e2bb6004b815320919c75f85e71b0693d7b87 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 17 Jul 2024 15:45:35 +0200 Subject: [PATCH] API departement: noms fonctions pour doc --- app/api/departements.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/departements.py b/app/api/departements.py index 979976f7f..53ec44748 100644 --- a/app/api/departements.py +++ b/app/api/departements.py @@ -214,7 +214,7 @@ def departement_etudiants_by_id(dept_id: int): @scodoc @permission_required(Permission.ScoView) @as_json -def dept_formsemestres_ids(acronym: str): +def departement_formsemestres_ids(acronym: str): """liste des ids formsemestre du département""" dept = Departement.query.filter_by(acronym=acronym).first_or_404() return [formsemestre.id for formsemestre in dept.formsemestres] @@ -225,7 +225,7 @@ def dept_formsemestres_ids(acronym: str): @scodoc @permission_required(Permission.ScoView) @as_json -def dept_formsemestres_ids_by_id(dept_id: int): +def departement_formsemestres_ids_by_id(dept_id: int): """liste des ids formsemestre du département""" dept = Departement.query.get_or_404(dept_id) return [formsemestre.id for formsemestre in dept.formsemestres]