From b8b02bd5c8c88434c692107be3c5c5184c066976 Mon Sep 17 00:00:00 2001 From: Johan Le Baut Date: Fri, 9 Dec 2022 15:26:18 +0100 Subject: [PATCH] API: add date commandable --- webapp/ipe_fetcher/axione.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/ipe_fetcher/axione.py b/webapp/ipe_fetcher/axione.py index e0f04c5..7c94b33 100644 --- a/webapp/ipe_fetcher/axione.py +++ b/webapp/ipe_fetcher/axione.py @@ -163,7 +163,7 @@ class Axione: cur.execute( f""" - SELECT EtatImmeuble + SELECT EtatImmeuble, DateDebutAcceptationCmdAcces FROM {self.db_name_refimm} WHERE IdentifiantImmeuble == '{id_immeuble}' """ @@ -182,6 +182,7 @@ class Axione: isEligible=isEligible, ftthStatus=imm_elig, reasonNotEligible=reasonNotEligible, + dateCommandable=res[1] ) return eligStatus