use item_name filter for generic tracker

This commit is contained in:
Fabian Dill 2021-05-19 21:57:10 +02:00
parent 31a3c1cf33
commit 518e5db55b
2 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@
</thead> </thead>
<tbody> <tbody>
{% for name, count in acquired_items.items() %} {% for name, count in inventory.items() %}
<tr> <tr>
<td>{{ name }}</td> <td>{{ name | item_name }}</td>
<td>{{ count }}</td> <td>{{ count }}</td>
</tr> </tr>
{%- endfor -%} {%- endfor -%}

View File

@ -428,7 +428,7 @@ def getPlayerTracker(tracker: UUID, tracked_team: int, tracked_player: int):
**display_data) **display_data)
else: else:
return render_template("genericTracker.html", return render_template("genericTracker.html",
acquired_items={lookup_any_item_id_to_name[id]: count for id, count in inventory.items()}, inventory=inventory,
player=tracked_player, team=tracked_team, room=room, player_name=player_name, player=tracked_player, team=tracked_team, room=room, player_name=player_name,
checked_locations= checked_locations, not_checked_locations = set(locations[tracked_player])-checked_locations) checked_locations= checked_locations, not_checked_locations = set(locations[tracked_player])-checked_locations)