From 25b9bd183d02480a363c49ed57da3edc263d5547 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: Tue, 21 Apr 2026 15:56:34 +0300 Subject: [PATCH] test7 --- repositories/match_formation_repository.py | 4 +--- repositories/match_lineup_repository.py | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/repositories/match_formation_repository.py b/repositories/match_formation_repository.py index 9a486ad..d3989ae 100644 --- a/repositories/match_formation_repository.py +++ b/repositories/match_formation_repository.py @@ -153,8 +153,7 @@ def get_match_formations(match_id: int, team_id: int) -> list[dict]: 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 @@ -175,7 +174,6 @@ 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 ] diff --git a/repositories/match_lineup_repository.py b/repositories/match_lineup_repository.py index 69101de..cc302b2 100644 --- a/repositories/match_lineup_repository.py +++ b/repositories/match_lineup_repository.py @@ -90,7 +90,8 @@ def get_match_lineup_for_editor( COALESCE(p.first_name, '') AS first_name, COALESCE(mlp.number::text, '') AS number, COALESCE(mlp.position, '') AS position, - COALESCE(mlp.is_captain, FALSE) AS is_captain + COALESCE(mlp.is_captain, FALSE) AS is_captain, + p.position as position_full FROM match_lineup_players mlp JOIN players p ON p.id = mlp.player_id @@ -140,6 +141,7 @@ def get_match_lineup_for_editor( "first_name": row[6] or "", "number": row[7] or "", "position": row[8] or "", + "position_full ": row[10] or "", "is_captain": bool(row[9]), }