DS3: Avoid empty downloads

This commit is contained in:
Marechal-l
2022-11-01 18:37:11 +01:00
parent 5f0a9ca0f6
commit c4c485140d

View File

@@ -43,7 +43,7 @@
{% elif patch.game | supports_apdeltapatch %}
<a href="{{ url_for("download_patch", patch_id=patch.id, room_id=room.id) }}" download>
Download Patch File...</a>
{% elif patch.game == "Dark Souls III" %}
{% elif patch.game == "Dark Souls III" and patch.data %}
<a href="{{ url_for("download_slot_file", room_id=room.id, player_id=patch.player_id) }}" download>
Download JSON File...</a>
{% else %}