тест6
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
@@ -2098,7 +2098,7 @@ function renderLineupRow(row) {
|
||||
data-vmix-person-type="player"
|
||||
data-side="${escapeHtml(side)}"
|
||||
data-name="${escapeHtml(displayName)}"
|
||||
data-role="${escapeHtml(player.position || "")}"
|
||||
data-role="${escapeHtml(player.positionFull || player.position || "")}"
|
||||
>
|
||||
<div class="player-inline">
|
||||
<div class="player-inline-text">
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
data-vmix-person-type="player"
|
||||
data-side="home"
|
||||
data-name="{{ ((p.last_name or p.player_name or '') ~ ' ' ~ (p.first_name or '')) | trim }}"
|
||||
data-role="{{ p.pos or '' }}"
|
||||
data-role="{{ p.position_full or p.position or '' }}"
|
||||
>
|
||||
<div class="player-inline-text">
|
||||
<span class="last-name">{{ p.last_name or p.player_name }}</span>
|
||||
@@ -462,7 +462,7 @@
|
||||
data-vmix-person-type="player"
|
||||
data-side="home"
|
||||
data-name="{{ ((p.last_name or p.player_name or '') ~ ' ' ~ (p.first_name or '')) | trim }}"
|
||||
data-role="{{ p.pos or '' }}"
|
||||
data-role="{{ p.position_full or p.position or '' }}"
|
||||
>
|
||||
<div class="player-inline-text">
|
||||
<span class="last-name">{{ p.last_name or p.player_name }}</span>
|
||||
@@ -579,7 +579,7 @@
|
||||
data-vmix-person-type="player"
|
||||
data-side="away"
|
||||
data-name="{{ ((p.last_name or p.player_name or '') ~ ' ' ~ (p.first_name or '')) | trim }}"
|
||||
data-role="{{ p.pos or '' }}"
|
||||
data-role="{{ p.position_full or p.position or '' }}"
|
||||
>
|
||||
<div class="player-inline-text">
|
||||
<span class="last-name">{{ p.last_name or p.player_name }}</span>
|
||||
@@ -686,7 +686,7 @@
|
||||
data-vmix-person-type="player"
|
||||
data-side="away"
|
||||
data-name="{{ ((p.last_name or p.player_name or '') ~ ' ' ~ (p.first_name or '')) | trim }}"
|
||||
data-role="{{ p.position or '' }}"
|
||||
data-role="{{ p.position_full or p.position or '' }}"
|
||||
>
|
||||
<div class="player-inline-text">
|
||||
<span class="last-name">{{ p.last_name or p.player_name }}</span>
|
||||
@@ -1317,7 +1317,7 @@
|
||||
|
||||
if (!rawName) return;
|
||||
|
||||
const formattedName = swapNameParts(rawName);
|
||||
const formattedName = rawName;
|
||||
|
||||
sendNeutralPersonTitle(formattedName, role, logoUrl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user