fixing floorplan detection and adding recalculation method
This commit is contained in:
parent
335adc0856
commit
4dea766a12
4 changed files with 21 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue