diff --git a/app/api/departements.py b/app/api/departements.py index 979976f7..53ec4474 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]