multithreading fixes and optimizations

This commit is contained in:
simon987
2019-04-05 19:59:21 -04:00
parent 60349cf954
commit 2e353c9787
7 changed files with 46 additions and 27 deletions

5
run.py
View File

@@ -1,4 +1,5 @@
import json
import logging
import os
import shutil
from io import BytesIO
@@ -19,6 +20,10 @@ app = Flask(__name__)
app.secret_key = "A very secret key"
storage = LocalStorage(config.db_path)
# Disable flask logging
flaskLogger = logging.getLogger('werkzeug')
flaskLogger.setLevel(logging.ERROR)
tm = TaskManager(storage)
search = Search("changeme")