allow webhost handling of APMC files

This commit is contained in:
Fabian Dill
2021-05-16 01:16:51 +02:00
parent 685de847c4
commit de31fc320c
5 changed files with 40 additions and 5 deletions

View File

@@ -10,8 +10,13 @@
{% if room.seed.slots %}
<ul>
{% for patch in room.seed.slots|list|sort(attribute="player_id") %}
{% if patch.game == "Minecraft" %}
<li><a href="{{ url_for("download_slot_file", seed_id=room.seed.id, player_id=patch.player_id) }}">
APMC for player {{ patch.player_id }} - {{ patch.player_name }}</a></li>
{% else %}
<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>
{% endif %}
{% endfor %}
</ul>
{% endif %}