Skip to content

Commit

Permalink
(fix) add default values for offer is_geo and item_rank
Browse files Browse the repository at this point in the history
  • Loading branch information
LucileRainteau committed Sep 20, 2023
1 parent c834ce4 commit 6214f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/recommendation/api/src/huggy/schemas/offer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class RecommendableOffer:
search_group_name: str
venue_latitude: float
venue_longitude: float
is_geolocated: bool
item_score: float # lower = better
item_rank: int
is_geolocated: bool = None
item_rank: int = None
query_order: int = None # SQL query order by (lower = better)
random: float = None
offer_score: float = None # higher = better
Expand Down

0 comments on commit 6214f92

Please sign in to comment.