From c12d8e2f469f87ac7f73358c22fe00ad6d4b0d38 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 24 Mar 2022 17:03:05 +0100 Subject: [PATCH] WebHost: remove duplicate file ending dot (#343) --- WebHostLib/downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebHostLib/downloads.py b/WebHostLib/downloads.py index 0df536a4..f94e8e30 100644 --- a/WebHostLib/downloads.py +++ b/WebHostLib/downloads.py @@ -33,7 +33,7 @@ def download_patch(room_id, patch_id): else: new_zip.writestr(file.filename, zf.read(file), file.compress_type, 9) - fname = f"P{patch.player_id}_{patch.player_name}_{app.jinja_env.filters['suuid'](room_id)}." \ + fname = f"P{patch.player_id}_{patch.player_name}_{app.jinja_env.filters['suuid'](room_id)}" \ f"{AutoPatchRegister.patch_types[patch.game].patch_file_ending}" new_file.seek(0) return send_file(new_file, as_attachment=True, attachment_filename=fname)