use jinja's url_for instead of manual text assembling

This commit is contained in:
Fabian Dill 2021-03-06 06:09:12 +01:00
parent 11e1125044
commit 63fda9535a
1 changed files with 4 additions and 2 deletions

View File

@ -44,7 +44,8 @@
<tbody>
{%- for player, items in players.items() -%}
<tr>
<td><a href="{{ room.tracker|suuid }}/{{ team + 1 }}/{{ player }}">{{ loop.index }}</a></td>
<td><a href="{{ url_for("getPlayerTracker", tracker=room.tracker,
tracked_team=team, tracked_player=player)}}">{{ loop.index }}</a></td>
{%- if (team, loop.index) in video -%}
{%- if video[(team, loop.index)][0] == "Twitch" -%}
<td>
@ -120,7 +121,8 @@
<tbody>
{%- for player, checks in players.items() -%}
<tr>
<td><a href="{{ room.tracker|suuid }}/{{ team }}/{{ player }}">{{ loop.index }}</a></td>
<td><a href="{{ url_for("getPlayerTracker", tracker=room.tracker,
tracked_team=team, tracked_player=player)}}">{{ loop.index }}</a></td>
<td>{{ player_names[(team, loop.index)]|e }}</td>
{%- for area in ordered_areas -%}
{%- set checks_done = checks[area] -%}