WebHost: sort patches by player ID
This commit is contained in:
parent
d511dc7347
commit
5c9b3dbdbc
|
@ -9,7 +9,7 @@
|
||||||
{% macro list_patches_room(patches, room) %}
|
{% macro list_patches_room(patches, room) %}
|
||||||
{% if patches %}
|
{% if patches %}
|
||||||
<ul>
|
<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) }}">
|
<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>
|
Patch for player {{ patch.player }} - {{ room.seed.multidata["names"][0][patch.player-1] }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue