From 74793caa8dd748ac37108f31a4c9a71db3787b10 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Wed, 17 Aug 2011 16:56:45 +0300 Subject: [PATCH] ppf: Fix: Use database instead of self.database. --- ppf/db/access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppf/db/access.py b/ppf/db/access.py index 1ee21d0..0114289 100644 --- a/ppf/db/access.py +++ b/ppf/db/access.py @@ -111,9 +111,9 @@ class SQLiteDatabaseAccess(DatabaseAccess): """ def connect(self, database): - if not os.path.isfile(self.database): + if not os.path.isfile(database): return False - self.conn = sqlite3.connect(self.dbname) + self.conn = sqlite3.connect(database) self.cursor = self.conn.cursor() return True -- 2.20.1