Skip to content

Commit

Permalink
change type_territoire name variable in type_territoire_species
Browse files Browse the repository at this point in the history
  • Loading branch information
juggler31 committed Jan 22, 2025
1 parent f7c07b8 commit 2ef0a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions atlas/configuration/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
)
Expand Down
2 changes: 1 addition & 1 deletion atlas/modeles/repositories/tAreasRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2ef0a57

Please sign in to comment.