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

+ 5 - 2
swire_shop_item_list.py

@@ -125,7 +125,8 @@ def get_next_job(db,repeat=False,repkw=None,repnum=None):
 #    else:
 #        cursor = db.query('select distinct(kw),num+1 as num from swire_progress_list where num < 367 order by rand() limit 1')
 
-    cursor = db.query('select kw,num  from areacodes where expand=0 order by rand()')
+#    cursor = db.query('select kw,num  from areacodes where expand=0 order by rand()')
+    cursor = db.query('select kw,num  from areacodes order by rand()')
 
     for c in cursor:
         result['kw']=c['kw']
@@ -148,7 +149,9 @@ def get_next_job(db,repeat=False,repkw=None,repnum=None):
     if 'REP' in repkw:
         if repnum=='REP':
             repnum=None
-            cursor = db.query('select  num from swire_store_list where num not in (select num from conv_log) order by rand() limit 1')
+#            cursor = db.query('select  num from swire_store_list where num not in (select num from conv_log) order by rand() limit 1')
+
+            cursor = db.query('select  num from swire_store_list  order by rand() limit 1')
             for c in cursor:
                 repnum=c['num']
                 break