Update app.py

pull/15/head
Laurence Luo 2024-07-05 21:24:16 +08:00
parent 85c6c12275
commit 009cb113dd
No known key found for this signature in database
GPG Key ID: 76D108A29460F5F9
1 changed files with 3 additions and 2 deletions

5
app.py
View File

@ -130,8 +130,9 @@ def download_lc(lc):
if lc and len(lc) > 5 and os.path.exists('./' + lc): if lc and len(lc) > 5 and os.path.exists('./' + lc):
return send_file( return send_file(
lc, lc,
as_attachment=True, None,
attachment_filename='Custom.mxtpro' True,
'Custom.mxtpro'
) )
else: else:
return "请检查用户名、版本号是否正确!" return "请检查用户名、版本号是否正确!"