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

+ 2 - 2
swire_shop_item_list.py

@@ -353,7 +353,7 @@ def main():
             url = 'https://www.google.com.tw/maps/@{},{},18z?hl=zh-TW'.format(latitude, longitude)
 
             prev_cnt=0
-            cursor = db.query('select count(*) as cnt from swire_store_list where num="'+str(repnum)+'" ')
+            cursor = db.query('select count(*) as cnt from swire_store_list where num="'+str(area_num)+'" ')
             for c in cursor:
                 prev_cnt=c['cnt']
                 break
@@ -387,7 +387,7 @@ def main():
                 sys.exit()
             pass
         aft_cnt=0
-        cursor = db.query('select count(*) as cnt from swire_store_list where num="'+str(repnum)+'" ')
+        cursor = db.query('select count(*) as cnt from swire_store_list where num="'+str(area_num)+'" ')
         for c in cursor:
             aft_cnt=c['cnt']
             break