test8
This commit is contained in:
1
app.py
1
app.py
@@ -607,6 +607,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",
|
||||
request=request,
|
||||
|
||||
@@ -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]),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user