Преглед изворни кода

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