From 69b09fc3c7faff066849dc879a7bef3d26e50e91 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 3 Aug 2022 21:51:45 +0200 Subject: [PATCH] API formsemestre: changement format annee_scolaire --- app/models/formsemestre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/formsemestre.py b/app/models/formsemestre.py index 316811c4fc..7a55e16b7d 100644 --- a/app/models/formsemestre.py +++ b/app/models/formsemestre.py @@ -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()