From bcb7f648c27917c5c5a4c5049802431cfce1f2d3 Mon Sep 17 00:00:00 2001 From: TheoLechemia Date: Fri, 8 Mar 2024 12:18:37 +0100 Subject: [PATCH] Use marshalow schema to validate synthese get_observations_for_web view remove use of json_schema fix #2907 --- backend/geonature/core/gn_synthese/routes.py | 1 - backend/geonature/tests/test_synthese.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/geonature/core/gn_synthese/routes.py b/backend/geonature/core/gn_synthese/routes.py index f9323c77da..c7c5ac36ab 100644 --- a/backend/geonature/core/gn_synthese/routes.py +++ b/backend/geonature/core/gn_synthese/routes.py @@ -22,7 +22,6 @@ from werkzeug.exceptions import Forbidden, NotFound, BadRequest, Conflict from werkzeug.datastructures import MultiDict from sqlalchemy import distinct, func, desc, asc, select, case -from sqlalchemy.orm import joinedload, lazyload, selectinload, contains_eager from geojson import FeatureCollection, Feature import sqlalchemy as sa from sqlalchemy.orm import load_only, aliased, Load, with_expression diff --git a/backend/geonature/tests/test_synthese.py b/backend/geonature/tests/test_synthese.py index 90752076e6..254f4f4af0 100644 --- a/backend/geonature/tests/test_synthese.py +++ b/backend/geonature/tests/test_synthese.py @@ -29,6 +29,7 @@ from geonature.core.gn_synthese.models import Synthese, TSources, VSyntheseForWebApp from geonature.core.gn_synthese.synthese_config import MANDATORY_COLUMNS +from geonature.core.gn_synthese.schemas import SyntheseSchema from geonature.core.gn_permissions.models import PermAction, Permission from geonature.core.gn_commons.models.base import TModules