API formsemestre: changement format annee_scolaire

This commit is contained in:
Emmanuel Viennet 2022-08-03 21:51:45 +02:00
parent 251949c220
commit 69b09fc3c7

View File

@ -181,7 +181,7 @@ class FormSemestre(db.Model):
"""
d = dict(self.__dict__)
d.pop("_sa_instance_state", None)
d["annee_scolaire"] = self.annee_scolaire_str()
d["annee_scolaire"] = self.annee_scolaire()
if self.date_debut:
d["date_debut"] = self.date_debut.strftime("%d/%m/%Y")
d["date_debut_iso"] = self.date_debut.isoformat()