various fixes to WebHost

This commit is contained in:
Fabian Dill
2021-04-10 15:26:30 +02:00
parent d4b422840a
commit ea15f221ae
5 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
{% macro list_patches_room(room) %}
{% if room.seed.patches %}
<ul>
{% for patch in patches|list|sort(attribute="player") %}
{% for patch in room.seed.patches|list|sort(attribute="player_id") %}
<li><a href="{{ url_for("download_patch", patch_id=patch.id, room_id=room.id) }}">
Patch for player {{ patch.player_id }} - {{ patch.player_name }}</a></li>
{% endfor %}