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

+ 6 - 5
swire_shop_item_list.py

@@ -131,11 +131,12 @@ def get_next_job(db,repeat=False,repkw=None,repnum=None):
         result['num']=repnum
 
     if 'REP' in repkw:
-        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')
-        for c in cursor:
-            repnum=c['num']
-            break
+        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')
+            for c in cursor:
+                repnum=c['num']
+                break
         if repnum is None:
             cursor = db.query('select  num from swire_store_list  order by rand() limit 1')
             for c in cursor: