jared 3 lat temu
rodzic
commit
bc5cc38479
1 zmienionych plików z 2 dodań i 2 usunięć
  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)
             url = 'https://www.google.com.tw/maps/@{},{},18z?hl=zh-TW'.format(latitude, longitude)
 
 
             prev_cnt=0
             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:
             for c in cursor:
                 prev_cnt=c['cnt']
                 prev_cnt=c['cnt']
                 break
                 break
@@ -387,7 +387,7 @@ def main():
                 sys.exit()
                 sys.exit()
             pass
             pass
         aft_cnt=0
         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:
         for c in cursor:
             aft_cnt=c['cnt']
             aft_cnt=c['cnt']
             break
             break