тест 9
This commit is contained in:
@@ -238,7 +238,8 @@ def get_tour_schedule_by_match_id(match_id: int) -> list[dict]:
|
||||
m.home_score,
|
||||
m.away_score,
|
||||
ht.name AS home_team_name,
|
||||
at.name AS away_team_name
|
||||
at.name AS away_team_name,
|
||||
COALESCE(m.channel, '') AS channel
|
||||
FROM matches m
|
||||
LEFT JOIN teams ht ON ht.id = m.home_team_id
|
||||
LEFT JOIN teams at ON at.id = m.away_team_id
|
||||
@@ -262,6 +263,7 @@ def get_tour_schedule_by_match_id(match_id: int) -> list[dict]:
|
||||
"away_score": r[6],
|
||||
"home_team_name": r[7] or "",
|
||||
"away_team_name": r[8] or "",
|
||||
"channel": r[9] or "",
|
||||
}
|
||||
for r in rows
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user