|
|
@@ -47,7 +47,9 @@ class Roll_Zuqiupipeline(object):
|
|
|
time_game = str(item['time_game'])
|
|
|
# 现在时间,时间戳
|
|
|
utime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
|
|
- match_date = datetime.datetime.now().strftime("%Y-%m-%d")
|
|
|
+ cdate = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
|
+ match_date = cdate.split(' ')[0]
|
|
|
+ match_time = cdate.split(' ')[1]
|
|
|
# 比赛id
|
|
|
match_id = item['game_id']
|
|
|
# 联赛id
|
|
|
@@ -99,7 +101,7 @@ class Roll_Zuqiupipeline(object):
|
|
|
match_kay = ["home_team", "guest_team", "lg_id", "status", "match_id", "match_date", "match_time",
|
|
|
"tag", "source", "is_rollball", "is_morningplate", "is_stringscene", "us_time", "uuid",
|
|
|
"half_match_id", "is_today", "is_horn"]
|
|
|
- match_value = [team_home, team_guest, league_id, 1, match_id, match_date, '00:00', number,
|
|
|
+ match_value = [team_home, team_guest, league_id, 1, match_id, match_date, match_time, number,
|
|
|
"hg3535", 1, 0, 0, utime, uuid, 0, 0, 0]
|
|
|
match_data = dict(zip(match_kay, match_value))
|
|
|
match_list.append(match_data)
|
|
|
@@ -628,7 +630,7 @@ class Roll_Zuqiupipeline(object):
|
|
|
match_kay = ["home_team", "guest_team", "lg_id", "status", "match_id", "match_date", "match_time",
|
|
|
"tag", "source", "is_rollball", "is_morningplate", "is_stringscene", "us_time", "uuid",
|
|
|
"half_match_id", "is_today", "is_horn"]
|
|
|
- match_value = [team_home, team_guest, league_id, 1, horn_id, match_date, '00:00', number,
|
|
|
+ match_value = [team_home, team_guest, league_id, 1, horn_id, match_date, match_time, number,
|
|
|
"hg3535", 1, 0, 0, utime, uuid, 0, 0, 1]
|
|
|
match_data = dict(zip(match_kay, match_value))
|
|
|
match_list.append(match_data)
|