Skip to content

Commit

Permalink
feat: add a relation between 'FRONTEND.ENABLE_PROFILES' and 'SYNTHESE…
Browse files Browse the repository at this point in the history
….TAXON_SHEET.ENABLE_TAB_PROFILES'
  • Loading branch information
edelclaux committed Jan 10, 2025
1 parent 31d7353 commit a57d0bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/geonature/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
except ValidationError as e:
raise ConfigError(CONFIG_FILE, e.messages)

# Handle consistency inside the frontend config

if(config_frontend["SYNTHESE"]["TAXON_SHEET"]["ENABLE_TAB_PROFILES"] and not config_frontend["FRONTEND"]["ENABLE_PROFILES"]):
config_frontend["SYNTHESE"]["TAXON_SHEET"]["ENABLE_TAB_PROFILES"] = False

config_default = {
# disable cache for downloaded files (PDF file stat for ex)
# TODO: use Flask.get_send_file_max_age(filename) to return 0 only for generated PDF files
Expand Down

0 comments on commit a57d0bc

Please sign in to comment.