Store sqlite connection instead of losing it

This commit is contained in:
dave 2014-08-26 17:37:45 -07:00
parent 3591528ea3
commit a22d3c1433
1 changed files with 1 additions and 2 deletions

View File

@ -3,10 +3,9 @@ import sqlite3
class database:
def __init__(self):
self.db = None
self.db = self.openDB()
# TODO: If db.sqlite doesn't exist, create one with the following demo data
#self.createDatabase()
self.openDB()
def createDatabase(self):
queries = [