mirror of
https://github.com/etienne-hd/lbc.git
synced 2026-04-25 08:15:38 +02:00
fix: correct raw data extraction for location and owner in Search model
This commit is contained in:
@@ -39,7 +39,7 @@ class Search:
|
||||
)
|
||||
)
|
||||
|
||||
raw_location: dict = raw.get("location", {})
|
||||
raw_location: dict = raw_ad.get("location", {})
|
||||
location = Location(
|
||||
country_id=raw_location.get("country_id"),
|
||||
region_id=raw_location.get("region_id"),
|
||||
@@ -56,7 +56,7 @@ class Search:
|
||||
is_shape=raw_location.get("is_shape")
|
||||
)
|
||||
|
||||
raw_owner: dict = raw.get("owner", {})
|
||||
raw_owner: dict = raw_ad.get("owner", {})
|
||||
owner = Owner(
|
||||
store_id=raw_owner.get("store_id"),
|
||||
user_id=raw_owner.get("user_id"),
|
||||
|
||||
Reference in New Issue
Block a user