Browse Source

修复语法

sunhao 3 years ago
parent
commit
54d40228db
2 changed files with 2 additions and 2 deletions
  1. 1 1
      live_promotion_detail_v1_sale_scraper.py
  2. 1 1
      live_promotions_scraper.py

+ 1 - 1
live_promotion_detail_v1_sale_scraper.py

139
 
139
 
140
             sys.stdout.flush()
140
             sys.stdout.flush()
141
 
141
 
142
-            task = threading.Thread(target=scrape, args=(heat))
142
+            task = threading.Thread(target=scrape, args=(heat,))
143
             task.start()  # 准备就绪,等待cpu执行
143
             task.start()  # 准备就绪,等待cpu执行
144
 
144
 
145
         current_time = time.time()
145
         current_time = time.time()

+ 1 - 1
live_promotions_scraper.py

97
         if increment > 0:
97
         if increment > 0:
98
 
98
 
99
             sys.stdout.flush()
99
             sys.stdout.flush()
100
-            task = threading.Thread(target=scrape, args=(heat))
100
+            task = threading.Thread(target=scrape, args=(heat,))
101
             task.start()  # 准备就绪,等待cpu执行
101
             task.start()  # 准备就绪,等待cpu执行
102
 
102
 
103
         current_time = time.time()
103
         current_time = time.time()