|
|
@ -283,7 +283,7 @@ def request_json(url, **kwargs):
|
|
|
|
|
|
|
|
|
|
|
|
def updated(restart=True):
|
|
|
|
def updated(restart=True):
|
|
|
|
if settings.general.getboolean('update_restart') and restart:
|
|
|
|
if settings.general.getboolean('update_restart') and restart:
|
|
|
|
from main import Server
|
|
|
|
from server import webserver
|
|
|
|
Server.restart()
|
|
|
|
webserver.restart()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
database.execute("UPDATE system SET updated='1'")
|
|
|
|
database.execute("UPDATE system SET updated='1'")
|
|
|
|