Fix: API formsemestre

This commit is contained in:
Emmanuel Viennet 2022-06-30 13:34:40 +02:00
parent 7645247357
commit 9f46849729
2 changed files with 6 additions and 2 deletions

View File

@ -230,7 +230,9 @@ def etudiant_formsemestres(etudid: int = None, nip: int = None, ine: int = None)
formsemestres = query.order_by(FormSemestre.date_debut) 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( @bp.route(

View File

@ -84,7 +84,9 @@ def formsemestre_apo(etape_apo: str):
FormSemestreEtape.formsemestre_id == FormSemestre.id, 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/<int:formsemestre_id>/bulletins", methods=["GET"]) @bp.route("/formsemestre/<int:formsemestre_id>/bulletins", methods=["GET"])