diff --git a/backend/geonature/core/gn_synthese/routes.py b/backend/geonature/core/gn_synthese/routes.py index fc41bcf29d..6ef882d551 100644 --- a/backend/geonature/core/gn_synthese/routes.py +++ b/backend/geonature/core/gn_synthese/routes.py @@ -958,6 +958,7 @@ def general_stats(permissions): } return data + ## ############################################################################ ## TAXON SHEET ROUTES ## ############################################################################ @@ -993,7 +994,9 @@ def taxon_stats(scope, cd_nom): .alias("areas") ) cd_ref = db.session.scalar(select(Taxref.cd_ref).where(Taxref.cd_nom == cd_nom)) - taxref_cd_nom_list = db.session.scalars(select(Taxref.cd_nom).where(Taxref.cd_ref == cd_ref)) + taxref_cd_nom_list = db.session.scalars( + select(Taxref.cd_nom).where(Taxref.cd_ref == cd_ref) + ) # Main query to fetch stats query = ( diff --git a/backend/geonature/utils/config.py b/backend/geonature/utils/config.py index 912b73aadb..cd28de3bce 100644 --- a/backend/geonature/utils/config.py +++ b/backend/geonature/utils/config.py @@ -35,7 +35,10 @@ # Handle consistency inside the frontend config -if(config_frontend["SYNTHESE"]["TAXON_SHEET"]["ENABLE_TAB_PROFILES"] and not config_frontend["FRONTEND"]["ENABLE_PROFILES"]): +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 = { diff --git a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html index e8d3aa8ba2..0c66e81c05 100644 --- a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html +++ b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html @@ -93,7 +93,10 @@