diff --git a/Flask/app.py b/Flask/app.py index 5d815ca..5e0b44b 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -412,7 +412,7 @@ def download(filename): print("file send !") return send_from_directory(directory='/app/MsRewards-Reborn/user_data/', path=filename, as_attachment=True) -ALLOWED_EXTENSIONS = [".json"] +ALLOWED_EXTENSIONS = ["json"] def allowed_file(filename): return '.' in filename and \ filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS @@ -436,8 +436,7 @@ def upload_file(): filename = secure_filename(file.filename) file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename)) return redirect(url_for('settings_get')) - - print("on a atteint la fin, chelou") + return redirect(url_for('settings_get')) def maxi(dict): diff --git a/Flask/templates/settings.html b/Flask/templates/settings.html index 6c73392..5ed196f 100644 --- a/Flask/templates/settings.html +++ b/Flask/templates/settings.html @@ -75,9 +75,12 @@
{% endif %}