From 7853e83e48fe2a8678fc870195e563c7b867643a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 2 Feb 2011 22:33:55 +0100 Subject: webif fixes --- module/web/ServerThread.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/web/ServerThread.py') diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py index 7f47f80c6..9a3e6cb2a 100644 --- a/module/web/ServerThread.py +++ b/module/web/ServerThread.py @@ -5,8 +5,6 @@ import threading import logging import sqlite3 -import webinterface - core = None log = logging.getLogger("log") @@ -27,6 +25,9 @@ class WebServer(threading.Thread): self.setDaemon(True) def run(self): + import webinterface + global webinterface + self.checkDB() if self.https: -- cgit v1.2.3