From 241b8d1842da618f8e19a5fc876ad24743c7dbf2 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 6 Jul 2025 11:48:36 +0000 Subject: [PATCH] bugfix fetching prices for buy listings --- crawler/data_access.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crawler/data_access.py b/crawler/data_access.py index a99e6f1..2e6fa54 100644 --- a/crawler/data_access.py +++ b/crawler/data_access.py @@ -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)