diff --git a/vmix.zip b/app.zip similarity index 52% rename from vmix.zip rename to app.zip index 4ceebf6..9a091af 100644 Binary files a/vmix.zip and b/app.zip differ diff --git a/repositories/match_session_repository.py b/repositories/match_session_repository.py index 2ab5b7e..2eb1312 100644 --- a/repositories/match_session_repository.py +++ b/repositories/match_session_repository.py @@ -61,10 +61,12 @@ def get_match_session_by_token(session_token: str): ht.id AS home_team_id, ht.name AS home_team_name, ht.logo_url AS home_team_logo, + ht.logo_path AS home_team_logo_path, at.id AS away_team_id, at.name AS away_team_name, - at.logo_url AS away_team_logo + at.logo_url AS away_team_logo, + at.logo_path AS away_team_logo_path FROM match_sessions ms JOIN matches m ON m.id = ms.match_id diff --git a/templates/match_workspace.html b/templates/match_workspace.html index c69e397..9059539 100644 --- a/templates/match_workspace.html +++ b/templates/match_workspace.html @@ -1053,7 +1053,11 @@ data-role="{{ p.position or '' }}" }, teamLogos: { home: {{ session[15] | tojson }}, - away: {{ session[18] | tojson }} + away: {{ session[19] | tojson }} + }, + vmixTeamLogos: { + home: {{ session[16] | tojson }}, + away: {{ session[20] | tojson }} }, sessionToken: {{ session[3] | tojson }}, matchId: {{ session[1] | tojson }}, @@ -1303,6 +1307,7 @@ data-role="{{ p.position or '' }}" const matchId = window.MATCH_DATA?.matchId; const sessionToken = window.MATCH_DATA?.sessionToken; const teamLogos = window.MATCH_DATA?.teamLogos || {}; + const vmixTeamLogos = window.MATCH_DATA?.vmixTeamLogos || {}; if (!matchId || !sessionToken) { return; @@ -1372,7 +1377,9 @@ data-role="{{ p.position or '' }}" const firstName = String(trigger.dataset.firstName || "").trim(); const lastName = String(trigger.dataset.lastName || "").trim(); const role = String(trigger.dataset.role || "").trim(); - const logoUrl = side === "away" ? teamLogos.away : teamLogos.home; + const logoUrl = side === "away" + ? (vmixTeamLogos.away || teamLogos.away) + : (vmixTeamLogos.home || teamLogos.home); let formattedName = "";