From 27edae3db6fb00b352192b3e9cdb30f05d6c87e2 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Sat, 23 Dec 2023 01:18:19 +0100 Subject: [PATCH] feat: add extra filters on GET /prices (#100) --- app/schemas.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/schemas.py b/app/schemas.py index 9632037c..e4f7b908 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -211,8 +211,10 @@ class ProofBase(BaseModel): class PriceFilter(Filter): product_code: Optional[str] | None = None + product_id: Optional[int] | None = None location_osm_id: Optional[int] | None = None location_osm_type: Optional[LocationOSMEnum] | None = None + location_id: Optional[int] | None = None price: Optional[int] | None = None currency: Optional[str] | None = None price__gt: Optional[int] | None = None @@ -224,6 +226,7 @@ class PriceFilter(Filter): date__gte: Optional[str] | None = None date__lt: Optional[str] | None = None date__lte: Optional[str] | None = None + owner: Optional[str] | None = None order_by: Optional[list[str]] | None = None class Constants(Filter.Constants):