This commit is contained in:
2026-04-22 13:24:42 +03:00
parent 66ea8a7a80
commit ca3a282cd3
2 changed files with 2 additions and 6 deletions

View File

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