add option to filter for min sqm per listing
This commit is contained in:
parent
1c77c78518
commit
0acd417d34
3 changed files with 16 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ class Listing:
|
|||
json.dump(objs, f)
|
||||
|
||||
@property
|
||||
def sqm_model(self, recalculate=True):
|
||||
def sqm_model(self, recalculate=True) -> float:
|
||||
if not self.path_floorplan_model_json().exists() or recalculate:
|
||||
self.calculate_sqm_model()
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ class Listing:
|
|||
with open(self.path_floorplan_ocr_json(), "w") as f:
|
||||
json.dump(objs, f)
|
||||
|
||||
async def sqm_ocr(self, recalculate=False):
|
||||
async def sqm_ocr(self, recalculate=False) -> float | None:
|
||||
if not self.path_floorplan_ocr_json().exists() or recalculate:
|
||||
await self.calculate_sqm_ocr()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue