From 2ef0a5704c5f71fc84521d306b78fee90d7a9d7e Mon Sep 17 00:00:00 2001 From: Joaquim Nallar Date: Wed, 22 Jan 2025 23:15:40 +0100 Subject: [PATCH] change type_territoire name variable in type_territoire_species --- atlas/configuration/config_schema.py | 1 + atlas/modeles/repositories/tAreasRepository.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/atlas/configuration/config_schema.py b/atlas/configuration/config_schema.py index 5b883e8a..c0befd9f 100644 --- a/atlas/configuration/config_schema.py +++ b/atlas/configuration/config_schema.py @@ -145,6 +145,7 @@ class Meta: AFFICHAGE_GRAPH_AREA_GENERAL_PRESENTATION = fields.Boolean(load_default=False) AFFICHAGE_GRAPH_AREA_OBS_ESPECES = fields.Boolean(load_default=False) AFFICHAGE_GRAPH_AREA_PROVENANCE_DONNEE = fields.Boolean(load_default=False) + TYPE_TERRITOIRE_SPECIES = fields.List(fields.String(), load_default=["COM"]) COLOR_STACKED_BAR_CHARTS = fields.List( fields.String(), load_default=["#E1CE7A", "#FBFFB9", "#FDD692"] ) diff --git a/atlas/modeles/repositories/tAreasRepository.py b/atlas/modeles/repositories/tAreasRepository.py index 163b1531..c8523d79 100644 --- a/atlas/modeles/repositories/tAreasRepository.py +++ b/atlas/modeles/repositories/tAreasRepository.py @@ -81,7 +81,7 @@ def getAreasObservationsChilds(connection, cd_ref): """ results = connection.execute( - text(sql), taxonsList=taxons, list_id_type=current_app.config["TYPE_TERRITOIRE"] + text(sql), taxonsList=taxons, list_id_type=current_app.config["TYPE_TERRITOIRE_SPECIES"] ) municipalities = list() for r in results: