Your Name 6 years ago
parent
commit
89b8af8134
2 changed files with 3 additions and 3 deletions
  1. 2 2
      hg3535/ball_func.py
  2. 1 1
      hg3535/pipelines.py

+ 2 - 2
hg3535/ball_func.py

@@ -375,7 +375,7 @@ def bqone_intodb(data1, data2, data3, cursor, redis_db):
 
 def get_pcode(corner_ball, code):
     code_dict = {'concede': 1, 'capot': 2, 'two_sides': 3, 'total_goal': 4, 'half_full': 5, 'bodan': 6,
-                 'first_last_ball': 7, 'temaball': 11, 'goal_size': 13}
+                 'first_last_ball': 7, 'team_score': 11, 'goal_size': 13}
     if corner_ball == "角球":
         p_code = "corner_ball"
         p_id = 9
@@ -485,7 +485,7 @@ def zqone_competitions(data, cursor):
 
 def get_pcodes(corner_ball, code):
     code_dict = {'concede': 1, 'capot': 2, 'two_sides': 3, 'total_goal': 4, 'half_full': 5, 'bodan': 6,
-                 'first_last_ball': 7, 'temaball': 11, 'goal_size': 13}
+                 'first_last_ball': 7, 'team_score': 11, 'goal_size': 13}
     if corner_ball == "角球":
         p_code = "corner_ball"
         p_id = 9

+ 1 - 1
hg3535/pipelines.py

@@ -341,7 +341,7 @@ class Zuqiupipeline(object):
                     logger.warning('足球first_last_balls插入错误')
                     logger.warning(e)
 
-        p_code, p_id = get_pcode(corner_ball, 'temaball')
+        p_code, p_id = get_pcode(corner_ball, 'team_score')
         full_dicts = item['full_data']
         half_dicts = item['half_data']
         full_dict_rules = item['full_data_rule']