|
@@ -216,13 +216,13 @@ def analyze_locations(commutes, num_locations):
|
|
|
|
|
|
|
|
with db.connect() as conn:
|
|
with db.connect() as conn:
|
|
|
rows = conn.select('''select p.lat, p.lon, price from properties p
|
|
rows = conn.select('''select p.lat, p.lon, price from properties p
|
|
|
- where lat is not null and lon is not null''')
|
|
|
|
|
|
|
+ where lat is not null and lon is not null and property_type != "Site"''')
|
|
|
|
|
|
|
|
random.shuffle(rows)
|
|
random.shuffle(rows)
|
|
|
to_load = []
|
|
to_load = []
|
|
|
|
|
|
|
|
for lat, lon, price in rows:
|
|
for lat, lon, price in rows:
|
|
|
- if not (250000 < price < 500000):
|
|
|
|
|
|
|
+ if not (250000 < price < 550000):
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
closest = None
|
|
closest = None
|