1
0
forked from ScoDoc/ScoDoc

Fix: API partitions/order

This commit is contained in:
Emmanuel Viennet 2022-07-27 16:19:38 +02:00
parent 1796279d8a
commit ee93cf1e9b

View File

@ -417,7 +417,7 @@ def formsemestre_order_partitions(formsemestre_id: int):
db.session.commit()
app.set_sco_dept(formsemestre.departement.acronym)
sco_cache.invalidate_formsemestre(formsemestre_id)
return jsonify(formsemestre.to_dict())
return jsonify(formsemestre.to_dict(convert_objects=True))
@bp.route("/partition/<int:partition_id>/groups/order", methods=["POST"])