From 461550c54467b34297acf0c39c06cfc5eada7348 Mon Sep 17 00:00:00 2001 From: Johan Le Baut Date: Wed, 11 Jan 2023 22:26:41 +0100 Subject: [PATCH] fix ordre des pastilles si liazo + aquilenet --- webapp/ipe_fetcher/liazo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/ipe_fetcher/liazo.py b/webapp/ipe_fetcher/liazo.py index e6dcd5e..c1ad615 100644 --- a/webapp/ipe_fetcher/liazo.py +++ b/webapp/ipe_fetcher/liazo.py @@ -48,7 +48,8 @@ class Liazo: idImm = building.get("ref") if buildings.get(idImm): buildings[idImm]["fdnEligStatus"] = fdnEligStatus - buildings[idImm]["etat_imm_priority"] = 4 + if buildings[idImm]["etat_imm_priority"] > 4: + buildings[idImm]["etat_imm_priority"] = 4 if buildings[idImm].get("found_in"): buildings[idImm]["found_in"].append("liazo") else: