Skip to content

Commit

Permalink
fix: apply suggestion on id_area
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Jan 14, 2025
1 parent a956d35 commit cf2b79c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/geonature/core/gn_synthese/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,9 +988,8 @@ def taxon_stats(scope, cd_nom):

# Subquery to fetch areas based on area_type
areas_subquery = (
select([LAreas.id_area])
.where(LAreas.id_type == BibAreasTypes.id_type)
.where(BibAreasTypes.type_code == area_type)
select(LAreas.id_area)
.where(LAreas.id_type == BibAreasTypes.id_type, BibAreasTypes.type_code == area_type)
.alias("areas")
)
cd_ref = db.session.scalar(select(Taxref.cd_ref).where(Taxref.cd_nom == cd_nom))
Expand Down

0 comments on commit cf2b79c

Please sign in to comment.