forked from ScoDoc/ScoDoc
API: formsemetre: ajoute annee_scolaire
This commit is contained in:
parent
4a4da9011d
commit
e140bd7372
@ -59,6 +59,7 @@ def formsemestre(formsemestre_id: int):
|
|||||||
# pour accéder aux préferences
|
# pour accéder aux préferences
|
||||||
dept = Departement.query.get(formsemestre.dept_id)
|
dept = Departement.query.get(formsemestre.dept_id)
|
||||||
app.set_sco_dept(dept.acronym)
|
app.set_sco_dept(dept.acronym)
|
||||||
|
data["annee_scolaire"] = formsemestre.annee_scolaire_str()
|
||||||
data["session_id"] = formsemestre.session_id()
|
data["session_id"] = formsemestre.session_id()
|
||||||
return jsonify(data)
|
return jsonify(data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user