prepare webhost for multi-game per-slot downloads

This commit is contained in:
Fabian Dill
2021-05-14 15:25:57 +02:00
parent 23678b814d
commit 19896e1fae
11 changed files with 61 additions and 57 deletions

View File

@@ -7,9 +7,9 @@
</ul>
{%- endmacro %}
{% macro list_patches_room(room) %}
{% if room.seed.patches %}
{% if room.seed.slots %}
<ul>
{% for patch in room.seed.patches|list|sort(attribute="player_id") %}
{% for patch in room.seed.slots|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 %}