detect floorplan using asyncio

This commit is contained in:
Viktor Barzin 2025-05-17 22:58:35 +00:00
parent 68cc70bd11
commit b1e0ed170b
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
3 changed files with 22 additions and 9 deletions

View file

@ -135,7 +135,7 @@ def detect_floorplan(ctx: click.core.Context):
data_dir = ctx.obj['data_dir']
click.echo(f'Running detect_floorplan in {data_dir}')
listing_paths = sorted(list(pathlib.Path(data_dir).glob("*/listing.json")))
detect_floorplan_module.detect_floorplan(listing_paths)
asyncio.run(detect_floorplan_module.detect_floorplan(listing_paths))
@cli.command()