reformat with black; looks better
This commit is contained in:
parent
1122f5a96f
commit
0b9d50af47
11 changed files with 240 additions and 244 deletions
|
|
@ -14,20 +14,22 @@ async def calculate_route(
|
|||
# reduce listings to everything within 7 miles
|
||||
filtered_listings = []
|
||||
for listing in listings:
|
||||
print(f'Processing {listing.identifier}')
|
||||
print(f"Processing {listing.identifier}")
|
||||
if listing.isRemoved:
|
||||
print(f"Removed-Skip: Skipping {listing.identifier} "
|
||||
"is already removed.")
|
||||
print(f"Removed-Skip: Skipping {listing.identifier} " "is already removed.")
|
||||
continue
|
||||
sqm_ocr = await listing.sqm_ocr()
|
||||
if (sqm_ocr is None or sqm_ocr < 30 or sqm_ocr > 200):
|
||||
print((f"Floorplan-Skip: Skipping {listing.identifier} as "
|
||||
f"sqm_ocr is {sqm_ocr}"))
|
||||
if sqm_ocr is None or sqm_ocr < 30 or sqm_ocr > 200:
|
||||
print(
|
||||
(
|
||||
f"Floorplan-Skip: Skipping {listing.identifier} as "
|
||||
f"sqm_ocr is {sqm_ocr}"
|
||||
)
|
||||
)
|
||||
continue
|
||||
filtered_listings.append(listing)
|
||||
|
||||
print(
|
||||
f"Filtered listings from {len(listings)} to {len(filtered_listings)}")
|
||||
print(f"Filtered listings from {len(listings)} to {len(filtered_listings)}")
|
||||
|
||||
for listing in tqdm(filtered_listings):
|
||||
listing.calculate_route(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue