This commit is contained in:
Emmanuel Viennet 2021-12-17 00:39:06 +01:00
parent b153c9ad9e
commit eb5a1c727c

View File

@ -377,15 +377,17 @@ def dict_decision_jury(etudid, formsemestre_id, with_decisions=False):
etat = decision["etat"] etat = decision["etat"]
if decision["decision_sem"]: if decision["decision_sem"]:
code = decision["decision_sem"]["code"] code = decision["decision_sem"]["code"]
date = ndb.DateDMYtoISO(
dpv["decisions"][0]["decision_sem"]["event_date"]
)
else: else:
code = "" code = ""
date = ""
d["decision"] = dict( d["decision"] = dict(
code=code, code=code,
etat=etat, etat=etat,
date=ndb.DateDMYtoISO( date=date,
dpv["decisions"][0]["decision_sem"]["event_date"]
),
) )
if ( if (
decision["decision_sem"] decision["decision_sem"]