Skip to content

Commit

Permalink
fixup! Use marshalow schema to validate synthese get_observations_for…
Browse files Browse the repository at this point in the history
…_web view remove use of json_schema fix #2907
  • Loading branch information
TheoLechemia committed Mar 8, 2024
1 parent 2727cdb commit 0a6ab08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/geonature/core/gn_synthese/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
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
Expand Down Expand Up @@ -152,9 +153,8 @@ def get_observations_for_web(permissions):
}
# Init with compulsory columns
columns = []
for col_name in MANDATORY_COLUMNS:
columns.append(col_name)
columns.append(getattr(VSyntheseForWebApp, col_name))
for col in MANDATORY_COLUMNS:
columns.extend([col, getattr(VSyntheseForWebApp, col)])

if "count_min_max" in param_column_list:
count_min_max = case(
Expand Down

0 comments on commit 0a6ab08

Please sign in to comment.