소스 검색

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