فهرست منبع

tweak commute lookup params

Martin 7 سال پیش
والد
کامیت
3654dcd4fe
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      commute.py

+ 2 - 2
commute.py

@@ -216,13 +216,13 @@ def analyze_locations(commutes, num_locations):
 
     with db.connect() as conn:
         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)
         to_load = []
 
         for lat, lon, price in rows:
-            if not (250000 < price < 500000):
+            if not (250000 < price < 550000):
                 continue
 
             closest = None