From eb5a1c727c09c21e713c728b8b79c20b29da12c2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 17 Dec 2021 00:39:06 +0100 Subject: [PATCH] oups --- app/scodoc/sco_bulletins_json.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/scodoc/sco_bulletins_json.py b/app/scodoc/sco_bulletins_json.py index 9dae5753..2b5ec2c4 100644 --- a/app/scodoc/sco_bulletins_json.py +++ b/app/scodoc/sco_bulletins_json.py @@ -377,15 +377,17 @@ def dict_decision_jury(etudid, formsemestre_id, with_decisions=False): etat = decision["etat"] if decision["decision_sem"]: code = decision["decision_sem"]["code"] + date = ndb.DateDMYtoISO( + dpv["decisions"][0]["decision_sem"]["event_date"] + ) else: code = "" + date = "" d["decision"] = dict( code=code, etat=etat, - date=ndb.DateDMYtoISO( - dpv["decisions"][0]["decision_sem"]["event_date"] - ), + date=date, ) if ( decision["decision_sem"]