test13
This commit is contained in:
@@ -279,7 +279,7 @@ def sort_players_by_side(players: list[dict]) -> list[dict]:
|
|||||||
return sorted(
|
return sorted(
|
||||||
players,
|
players,
|
||||||
key=lambda p: (
|
key=lambda p: (
|
||||||
side_order.get(parse_position(p.get("position", ""))[1], 1),
|
side_order.get(p.get("position", "")[1], 1),
|
||||||
str(p.get("number", "")),
|
str(p.get("number", "")),
|
||||||
str(p.get("last_name", "") or p.get("player_name", "")),
|
str(p.get("last_name", "") or p.get("player_name", "")),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ def get_match_lineup_for_vmix(
|
|||||||
COALESCE(p.last_name, '') AS last_name,
|
COALESCE(p.last_name, '') AS last_name,
|
||||||
COALESCE(p.first_name, '') AS first_name,
|
COALESCE(p.first_name, '') AS first_name,
|
||||||
COALESCE(mlp.number::text, '') AS number,
|
COALESCE(mlp.number::text, '') AS number,
|
||||||
COALESCE(mlp.position, '') AS position,
|
COALESCE(p.position, '') AS position,
|
||||||
COALESCE(mlp.is_captain, FALSE) AS is_captain,
|
COALESCE(mlp.is_captain, FALSE) AS is_captain,
|
||||||
COALESCE(p.position, '') AS pos
|
COALESCE(p.position, '') AS pos
|
||||||
FROM match_lineup_players mlp
|
FROM match_lineup_players mlp
|
||||||
|
|||||||
Reference in New Issue
Block a user