This commit is contained in:
2026-04-22 13:10:35 +03:00
parent 7d804050f7
commit 8d98decd62

View File

@@ -153,7 +153,8 @@ def get_match_formations(match_id: int, team_id: int) -> list[dict]:
mf.is_captain, mf.is_captain,
mf.x, mf.x,
mf.y, mf.y,
p.last_name p.last_name,
p.position as position_full
FROM match_formations mf FROM match_formations mf
LEFT JOIN players p ON p.id = mf.player_id LEFT JOIN players p ON p.id = mf.player_id
WHERE mf.match_id = %s WHERE mf.match_id = %s
@@ -170,6 +171,7 @@ def get_match_formations(match_id: int, team_id: int) -> list[dict]:
"player_name": row[1] or "", "player_name": row[1] or "",
"number": row[2] or "", "number": row[2] or "",
"position": row[3] or "", "position": row[3] or "",
"position_full": row[8] or "",
"is_captain": bool(row[4]), "is_captain": bool(row[4]),
"x": float(row[5]), "x": float(row[5]),
"y": float(row[6]), "y": float(row[6]),