From 9d33cf60e978a16b0707de6ae95a5a7ff803184f Mon Sep 17 00:00:00 2001 From: Giovanni Harting Date: Tue, 14 Jul 2015 14:51:56 +0200 Subject: [PATCH] fixed wrong indents --- LedD/daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LedD/daemon.py b/LedD/daemon.py index 74d1d35..8c85639 100644 --- a/LedD/daemon.py +++ b/LedD/daemon.py @@ -39,7 +39,7 @@ class Daemon: print("no config file found!") self.sqldb = sqlite3.connect(self.config.get(self.databaseSection, 'name', fallback='ledd.sqlite')) - sqldb.row_factory = sqlite3.Row + self.sqldb.row_factory = sqlite3.Row if not self.check_db(): self.init_db() @@ -80,8 +80,8 @@ class Daemon: if os.path.exists("ledd.sqlite"): os.remove("ledd.sqlite") self.sqldb = sqlite3.connect(self.config.get(self.databaseSection, 'name', fallback='ledd.sqlite')) - sqldb.row_factory = sqlite3.Row - with open("LedD/sql/ledd.sql", "r") as sqlfile: + self.sqldb.row_factory = sqlite3.Row + with open("LedD/sql/ledd.sql", "r") as sqlfile: c = self.sqldb.cursor() c.executescript(sqlfile.read()) c.close()