From 8d98decd629b4adb1b574ae54d2eb9f175486b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Wed, 22 Apr 2026 13:10:35 +0300 Subject: [PATCH] test8 --- repositories/match_formation_repository.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repositories/match_formation_repository.py b/repositories/match_formation_repository.py index d3989ae..64bcf27 100644 --- a/repositories/match_formation_repository.py +++ b/repositories/match_formation_repository.py @@ -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 @@ -170,6 +171,7 @@ 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]),