From: Razvan Deaconescu Date: Wed, 17 Aug 2011 13:56:45 +0000 (+0300) Subject: ppf: Fix: Use database instead of self.database. X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=74793caa8dd748ac37108f31a4c9a71db3787b10;p=cs-p2p-next.git ppf: Fix: Use database instead of self.database. --- 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