From 1d31f86b209b175659393f2491145c4a7fb0bef5 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Wed, 12 Apr 2023 15:49:46 +0200 Subject: [PATCH] - --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index a676fb3..84367e3 100644 --- a/app.py +++ b/app.py @@ -4,12 +4,12 @@ import os from werkzeug.utils import secure_filename import subprocess -process = subprocess.run(['wssh','--fbidhttp=False']) - 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()