тест 9

This commit is contained in:
2026-05-15 14:35:11 +03:00
parent 4e6806c553
commit 79c679f35d
3 changed files with 33 additions and 1 deletions

View File

@@ -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
]