Skip to content

Commit

Permalink
Fix atlas routes on prod env
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantoinedupre committed Jan 10, 2025
1 parent 19ad4ee commit cb0c38e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions atlas/atlasRoutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -319,7 +318,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:
Expand Down

0 comments on commit cb0c38e

Please sign in to comment.