|
|
|
@ -1192,16 +1192,20 @@ def get_updater_status():
|
|
|
|
|
}
|
|
|
|
|
status['text'] = text
|
|
|
|
|
# helper.updater_thread = helper.Updater()
|
|
|
|
|
updater_thread.status = 0
|
|
|
|
|
updater_thread.start()
|
|
|
|
|
status['status'] = updater_thread.get_update_status()
|
|
|
|
|
elif request.method == "GET":
|
|
|
|
|
try:
|
|
|
|
|
status['status'] = updater_thread.get_update_status()
|
|
|
|
|
if status['status'] == -1:
|
|
|
|
|
status['status'] = 7
|
|
|
|
|
except AttributeError:
|
|
|
|
|
# thread is not active, occours after restart on update
|
|
|
|
|
status['status'] = 7
|
|
|
|
|
except Exception:
|
|
|
|
|
status['status'] = 11
|
|
|
|
|
app.logger.error(status['status'])
|
|
|
|
|
return json.dumps(status)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|