From 4453e0cc27c9c4cdb179532831135d36b5a91333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Antoine=20Dupr=C3=A9?= Date: Fri, 10 Jan 2025 10:20:25 +0100 Subject: [PATCH] Fix atlas routes on prod env --- atlas/atlasRoutes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atlas/atlasRoutes.py b/atlas/atlasRoutes.py index f3f7f0c1..d9b4bfdb 100644 --- a/atlas/atlasRoutes.py +++ b/atlas/atlasRoutes.py @@ -16,7 +16,6 @@ session, ) -from atlas.configuration import config from atlas.env import db from atlas import utils from atlas.modeles.entities import vmTaxons, vmCommunes @@ -342,7 +341,7 @@ def is_statut_in_groupe(statut, groupe): return statut["cd_type_statut"] in group_types and statut["cd_sig"] in group_sigs groupes_statuts = [] - for config_groupe in config.GROUPES_STATUTS: + for config_groupe in current_app.config["GROUPES_STATUTS"]: groupe = {"label": config_groupe.get("label", ""), "statuts": []} groupes_statuts.append(groupe) for statut in statuts: