Skip to content

Commit

Permalink
perf(api): select "OBS" instead of entire synthese
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vergez committed Oct 26, 2023
1 parent 6ecdf47 commit e55fecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/geonature/core/gn_synthese/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_observations_for_web(permissions):
BibAreasTypes.id_type == LAreas.id_type,
),
)
.where(CorAreaSynthese.id_synthese == VSyntheseForWebApp.id_synthese)
.where(CorAreaSynthese.id_synthese == obs_query.c.id_synthese)
.where(
BibAreasTypes.type_code == current_app.config["SYNTHESE"]["AREA_AGGREGATION_TYPE"]
)
Expand Down

0 comments on commit e55fecf

Please sign in to comment.