тест6

This commit is contained in:
2026-04-21 15:51:08 +03:00
parent 8c40687942
commit af17b088cf
3 changed files with 9 additions and 7 deletions

View File

@@ -153,7 +153,8 @@ def get_match_formations(match_id: int, team_id: int) -> list[dict]:
mf.is_captain,
mf.x,
mf.y,
p.last_name
p.last_name,
p.position as position_full
FROM match_formations mf
LEFT JOIN players p ON p.id = mf.player_id
WHERE mf.match_id = %s
@@ -174,6 +175,7 @@ def get_match_formations(match_id: int, team_id: int) -> list[dict]:
"x": float(row[5]),
"y": float(row[6]),
"last_name": row[7] or "",
"position_full": row[8] or "",
}
for row in rows
]