Jared 3 년 전
부모
커밋
4b341a596e
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 5
      swire_shop_item_list.py

+ 6 - 5
swire_shop_item_list.py

@@ -175,12 +175,13 @@ def get_next_job(db,repeat=False,repkw=None,repnum=None):
     
 
 
-#    if repeat:
-
+    if repeat:
 #        cursor = db.query('select  lat_txt,lon_txt from swire_store_list where num ="'+str(result['num'])+'" and keyword="'+result['kw']+'" order by rand() limit 1')
-#        for c in cursor:
-#            result['lat']=c['lat_txt']
-#            result['lon']=c['lon_txt']
+        cursor = db.query('select  lat_txt,lon_txt from swire_store_list order by rand() limit 1')
+
+        for c in cursor:
+            result['lat']=c['lat_txt']
+            result['lon']=c['lon_txt']
 
     return result