From f1d74b992184d7806063143e3f381caa7d6c0461 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 21 Aug 2023 19:46:57 +0200 Subject: [PATCH] tests --- Flask/app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 84755ea..395c72f 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -406,10 +406,11 @@ def logs(): -@login_required @app.route('/download/', methods=['GET', 'POST']) -def download(filename): - return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename) +@login_required +def download(filename): + print("file send !") + return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename, as_attachment=True)