bugfix fetching prices for buy listings
This commit is contained in:
parent
db85cf2d3a
commit
241b8d1842
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ class Listing:
|
|||
|
||||
# some places list pw in price and others pcm
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue