From 009cb113ddc504796ad76237414ae7447e2d2f90 Mon Sep 17 00:00:00 2001 From: Laurence Luo Date: Fri, 5 Jul 2024 21:24:16 +0800 Subject: [PATCH] Update app.py --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 3df064d..5fe9137 100644 --- a/app.py +++ b/app.py @@ -130,8 +130,9 @@ def download_lc(lc): if lc and len(lc) > 5 and os.path.exists('./' + lc): return send_file( lc, - as_attachment=True, - attachment_filename='Custom.mxtpro' + None, + True, + 'Custom.mxtpro' ) else: return "请检查用户名、版本号是否正确!"