diff --git a/app/api/etudiants.py b/app/api/etudiants.py index a193553fae..4649a6698a 100644 --- a/app/api/etudiants.py +++ b/app/api/etudiants.py @@ -230,7 +230,9 @@ def etudiant_formsemestres(etudid: int = None, nip: int = None, ine: int = None) formsemestres = query.order_by(FormSemestre.date_debut) - return jsonify([formsemestre.to_dict() for formsemestre in formsemestres]) + return jsonify( + [formsemestre.to_dict(convert_parcours=True) for formsemestre in formsemestres] + ) @bp.route( diff --git a/app/api/formsemestres.py b/app/api/formsemestres.py index be7bf1e0ab..139b35ef1e 100644 --- a/app/api/formsemestres.py +++ b/app/api/formsemestres.py @@ -84,7 +84,9 @@ def formsemestre_apo(etape_apo: str): FormSemestreEtape.formsemestre_id == FormSemestre.id, ) - return jsonify([formsemestre.to_dict() for formsemestre in formsemestres]) + return jsonify( + [formsemestre.to_dict(convert_parcours=True) for formsemestre in formsemestres] + ) @bp.route("/formsemestre//bulletins", methods=["GET"])