From 0320e2575c969eb284cfe79800f990be97997265 Mon Sep 17 00:00:00 2001 From: etienne-hd Date: Sat, 21 Jun 2025 13:49:23 +0200 Subject: [PATCH] fix: correct raw data extraction for location and owner in Search model --- src/lbc/models/search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lbc/models/search.py b/src/lbc/models/search.py index 7803caf..7ad69dc 100644 --- a/src/lbc/models/search.py +++ b/src/lbc/models/search.py @@ -38,8 +38,8 @@ class Search: generic=raw_attribute.get("generic") ) ) - - 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"), @@ -55,8 +55,8 @@ class Search: provider=raw_location.get("provider"), 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"),