noodles 2 سال پیش
والد
کامیت
4f53a863d3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      run5.py

+ 2 - 2
run5.py

@@ -73,12 +73,12 @@ def brower_start(port):
 
 def get_next_job(db):
     location_list = pd.read_csv('HKS須重爬店家.csv')
-    location_list = location_list.sample(500)
-    
+        
     result = {}
     result = db.query('SELECT * FROM progress_list WHERE check_ = 1')
     url_pd = pd.DataFrame([dict(i) for i in result]) 
     location_list = location_list[~location_list['分店編號'].isin(url_pd['id_'].to_list())]
+    location_list = location_list.sample(500)
 
     return location_list