Fix sold checks with transport URLs

This commit is contained in:
qananasikq
2026-08-21 19:28:18 +03:00
parent 6b16496301
commit 4a6910c1fa
6 changed files with 43 additions and 10 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ class MobileDeClient:
) or None
return MobileDeListing(
id=listing_id,
url=MobileDeClient.build_detail_url(listing_id) if listing_id else "",
url=MobileDeClient.build_transport_detail_url(listing_id) if listing_id else "",
title=item.get("shortTitle"),
subtitle=item.get("subTitle"),
price=item.get("p"),
+1 -1
View File
@@ -340,7 +340,7 @@ class MobileDeMapper:
new_car=self._bool_value(detail.get("isConditionNew")),
is_hidden=False,
origin="MOBILEDE",
origin_url=MobileDeClient.build_detail_url(listing_id),
origin_url=MobileDeClient.build_transport_detail_url(listing_id),
origin_id=origin_id,
is_damaged=is_damaged,
evaluation=self._rating_text(detail.get("priceRating") or detail.get("rating")),