use item_name filter for generic tracker
This commit is contained in:
parent
31a3c1cf33
commit
518e5db55b
|
@ -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 -%}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue