diff --git a/app/api/etudiants.py b/app/api/etudiants.py index 2f81b0a25..f8afcb05a 100644 --- a/app/api/etudiants.py +++ b/app/api/etudiants.py @@ -335,7 +335,7 @@ def etudiant_bulletin_semestre( """ formsemestre = FormSemestre.query.filter_by(id=formsemestre_id).first_or_404() dept = Departement.query.filter_by(id=formsemestre.dept_id).first_or_404() - if g.scodoc_dept and dept != g.scodoc_dept: + if g.scodoc_dept and dept.acronym != g.scodoc_dept: return json_error(404, "formsemestre non trouve") if etudid is not None: query = Identite.query.filter_by(id=etudid)