Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Jan 10, 2025
1 parent 9cf9a35 commit ed90d50
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion backend/geonature/core/gn_synthese/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ def general_stats(permissions):
}
return data


## ############################################################################
## TAXON SHEET ROUTES
## ############################################################################
Expand Down Expand Up @@ -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 = (
Expand Down
5 changes: 4 additions & 1 deletion backend/geonature/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
<a
class="Link"
[routerLink]="['taxon/' + row.cd_nom]"
*ngIf="config.SYNTHESE.ENABLE_TAXON_SHEETS && row.hasOwnProperty('cd_nom'); else cellDefault"
*ngIf="
config.SYNTHESE.ENABLE_TAXON_SHEETS && row.hasOwnProperty('cd_nom');
else cellDefault
"
matTooltip="Afficher la fiche du taxon"
>
<ng-container *ngTemplateOutlet="cellDefault"></ng-container>
Expand Down

0 comments on commit ed90d50

Please sign in to comment.