Commit 9acd6efa authored by Florian Pritz's avatar Florian Pritz
Browse files

Use sqlite row factory


Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 6c83997e
......@@ -4,6 +4,7 @@ class DB:
def __init__(self, db_file):
self.db = sqlite3.connect(db_file)
self.init_db()
self.db.row_factory = sqlite3.Row
def init_db(self):
c = self.db.cursor()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment