fixing floorplan detection and adding recalculation method

This commit is contained in:
Kadir 2024-03-18 00:56:39 +00:00
parent 335adc0856
commit 4dea766a12
4 changed files with 21 additions and 4 deletions

View file

@ -154,7 +154,9 @@ class Listing():
@property
def price_per_sqm(self) -> float:
if self.sqm_ocr is None:
if self.sqm_ocr == 0:
print(self.identifier)
if self.sqm_ocr is None or self.sqm_ocr == 0:
return None
return self.price / self.sqm_ocr