1
0
forked from ScoDoc/ScoDoc

API: formsemetre: ajoute annee_scolaire

This commit is contained in:
Emmanuel Viennet 2022-05-12 17:46:34 +02:00
parent 4a4da9011d
commit e140bd7372

View File

@ -59,6 +59,7 @@ def formsemestre(formsemestre_id: int):
# pour accéder aux préferences
dept = Departement.query.get(formsemestre.dept_id)
app.set_sco_dept(dept.acronym)
data["annee_scolaire"] = formsemestre.annee_scolaire_str()
data["session_id"] = formsemestre.session_id()
return jsonify(data)