WebHost: remove duplicate file ending dot (#343)

This commit is contained in:
Fabian Dill 2022-03-24 17:03:05 +01:00 committed by GitHub
parent d8087660e6
commit c12d8e2f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)