From 411f0bd3b6f365ca19539830774190ef3a2d4ea4 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Wed, 12 Apr 2023 15:50:21 +0200 Subject: [PATCH] - --- app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 84367e3..f869c02 100644 --- a/app.py +++ b/app.py @@ -8,8 +8,6 @@ app = Flask(__name__) app.config['UPLOAD_FOLDER'] = "configs/squash" app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 512 #512MB -process = subprocess.run(['wssh','--fbidhttp=False']) - @app.route("/api/addimage", methods=['POST']) def add_image(): db.Connect() @@ -62,4 +60,7 @@ def get_image(): if filename is None or filename == "": filename = "default.squashfs" - return send_file(os.path.join(app.config['UPLOAD_FOLDER'], filename)) \ No newline at end of file + return send_file(os.path.join(app.config['UPLOAD_FOLDER'], filename)) + + +process = subprocess.run(['wssh','--fbidhttp=False']) \ No newline at end of file