From 4395eb10f3303e31b138a5d2d212c2ac77884968 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Fri, 19 Aug 2016 22:21:13 +0200 Subject: [PATCH] Fixed bug in db query code --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 1d4e93e..40bb331 100755 --- a/server.py +++ b/server.py @@ -47,7 +47,7 @@ def query(operation, *params): cur.execute(operation.replace('?', '%s'), params) return cur.fetchall() elif config['DB_ENGINE'] == 'sqlite': - if 'db' not in g or not g.db.is_connected(): + if 'db' not in g: g.db = sqlite3.connect(config['SQLITE_DB']) g.db.row_factory = dict_factory cur = g.db.cursor() -- GitLab