From b7234ab9fe03c2640f07266f1e949ecb8b1e3289 Mon Sep 17 00:00:00 2001 From: JeromeMaruejouls <94836070+JeromeMaruejouls@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:14:28 +0100 Subject: [PATCH] Fix error during area search in Metadata module (#3254) Co-authored-by: geoek --- backend/geonature/core/gn_meta/models/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/geonature/core/gn_meta/models/datasets.py b/backend/geonature/core/gn_meta/models/datasets.py index 6899ea4e97..475d5f506d 100644 --- a/backend/geonature/core/gn_meta/models/datasets.py +++ b/backend/geonature/core/gn_meta/models/datasets.py @@ -270,7 +270,7 @@ class DatasetFilterSchema(MetadataFilterSchema): areas = params.get("areas") if areas: - query = query.where_by_areas(areas) + query = TDatasets.filter_by_areas(areas, query=query) search = params.get("search") if search: