Your Name преди 6 години
родител
ревизия
3a7831d60e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      hg3535/spiders/hg3535_zq_status_up.py

+ 1 - 1
hg3535/spiders/hg3535_zq_status_up.py

@@ -232,7 +232,7 @@ class LanqiuSpider(scrapy.Spider):
             utime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
             self.conn.updata_data("update st_ball_status  set status=0, update_time='{0}' where match_id={1}".format(utime,res_id))
             sql1 = "insert into comendnotice(status, game_code, match_id,done_time) values (%s,%s, %s, %s) on conflict(match_id) do update set done_time = %s"
-            self.conn.cursor.execute(sql1,(4,'zq',res_id,utime,utime))
+            self.conn.cursor.execute(sql1,(0,'zq',res_id,utime,utime))
             self.conn.updata_data("update st_zq_result set status=2  where match_id={}".format(res_id))
             self.conn.updata_data("update st_zq_result_record set status=2  where match_id={}".format(res_id))
             self.conn.updata_data("update st_zq_competition set status=2  where match_id={}".format(res_id))