Skip to content

Commit eda9a3d

Browse files
committed
all instance attributes should be defined in constructor
1 parent 3effaee commit eda9a3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/utils/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class Database(object):
7171

7272
def __init__(self, database=None):
7373
self.database = self.filepath if database is None else database
74+
self.connection = None
75+
self.cursor = None
7476

7577
def connect(self, who="server"):
7678
self.connection = sqlite3.connect(self.database, timeout=3, isolation_level=None)

0 commit comments

Comments
 (0)