mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
WebHost: remove duplicate file ending dot (#343)
This commit is contained in:
@@ -33,7 +33,7 @@ def download_patch(room_id, patch_id):
|
|||||||
else:
|
else:
|
||||||
new_zip.writestr(file.filename, zf.read(file), file.compress_type, 9)
|
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}"
|
f"{AutoPatchRegister.patch_types[patch.game].patch_file_ending}"
|
||||||
new_file.seek(0)
|
new_file.seek(0)
|
||||||
return send_file(new_file, as_attachment=True, attachment_filename=fname)
|
return send_file(new_file, as_attachment=True, attachment_filename=fname)
|
||||||
|
Reference in New Issue
Block a user