bugfix fetching prices for buy listings

This commit is contained in:
Viktor Barzin 2025-07-06 11:48:36 +00:00
parent db85cf2d3a
commit 241b8d1842
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -110,7 +110,8 @@ class Listing:
# some places list pw in price and others pcm # some places list pw in price and others pcm
price = max( price = max(
self._listing_object["price"], self._listing_object.get("monthlyRent", 0) self._listing_object["price"],
self._listing_object.get("monthlyRent", 0) or 0,
) )
self.append_price_history(price) self.append_price_history(price)