WebHost: sort patches by player ID

This commit is contained in:
Fabian Dill 2020-08-03 06:41:25 +02:00
parent d511dc7347
commit 5c9b3dbdbc
1 changed files with 1 additions and 1 deletions

View File

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