This commit is contained in:
2026-04-21 16:08:33 +03:00
parent 25b9bd183d
commit fff2e909f8
2 changed files with 3 additions and 1 deletions

1
app.py
View File

@@ -606,6 +606,7 @@ def session_workspace(
home_formations = get_match_formations(match_id, home_team_id)
away_formations = get_match_formations(match_id, away_team_id)
return templates.TemplateResponse(
name="match_workspace.html",

View File

@@ -58,6 +58,7 @@ def _player_to_editor_dict(p: dict) -> dict:
"first_name": p.get("first_name", "") or "",
"number": str(p.get("number", "") or ""),
"position": p.get("position", "") or "",
"position_full": p.get("position_full", "") or p.get("position", "") or "",
"is_captain": bool(p.get("is_captain")),
}
@@ -141,7 +142,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]),
}