test9
This commit is contained in:
@@ -90,9 +90,8 @@ def get_match_lineup_for_editor(
|
||||
COALESCE(p.last_name, '') AS last_name,
|
||||
COALESCE(p.first_name, '') AS first_name,
|
||||
COALESCE(mlp.number::text, '') AS number,
|
||||
COALESCE(mlp.position, '') AS position,
|
||||
COALESCE(p.position, '') AS position,
|
||||
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
|
||||
@@ -135,7 +134,6 @@ def get_match_lineup_for_editor(
|
||||
# Если редактор уже сохранял состав — берём игроков из новой таблицы
|
||||
if player_rows:
|
||||
for row in player_rows:
|
||||
print(row)
|
||||
player = {
|
||||
"player_id": row[3],
|
||||
"player_name": row[4] or "",
|
||||
@@ -143,7 +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 "",
|
||||
# "position_full": row[10] or "",
|
||||
"is_captain": bool(row[9]),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user