Explorar o código

更新篮球, 父级玩法错误

Your Name %!s(int64=6) %!d(string=hai) anos
pai
achega
c1e1331de8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      hg3535/pipeline/jieshu.py

+ 2 - 1
hg3535/pipeline/jieshu.py

@@ -54,7 +54,8 @@ class Jieshuqiupipeline(object):
         res = Helper.async_post(MATCH_STATUS, status_dict)
         if res:
             if "成功" in res:
-                self.db.status35.insert(data)
+                # self.db.match_status35.insert(data)
+                self.db.match_status35.update({'match_id': match_id}, {'$set': data}, upsert=True)
                 self.rls.srem('hg3535.gunqiu.ids', match_id)
                 logger.info('{},赛事结果状态交成功, {}'.format(game_code, res))
                 logger.info(status_dict)