This commit is contained in:
Miroslav Stampar
2017-06-18 15:00:12 +02:00
parent b4980778dd
commit e2d3187a78
3 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ class Database(object):
self.cursor = None
def connect(self, who="server"):
self.connection = sqlite3.connect(self.database, timeout=3, isolation_level=None)
self.connection = sqlite3.connect(self.database, timeout=3, isolation_level=None, check_same_thread=False)
self.cursor = self.connection.cursor()
logger.debug("REST-JSON API %s connected to IPC database" % who)