Skip to content

Commit 34213d3

Browse files
committed
refactor: use sqlite3.Row instead of regular tuples for db
1 parent 42201c8 commit 34213d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

database/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def __init__(self):
3333
self.logger.error("An error has occurred while creating the database!")
3434

3535
self.connection = sqlite3.connect(database_path)
36+
self.connection.row_factory = sqlite3.Row
3637
self.connection.text_factory = lambda x: str(x, 'utf-8', "ignore")
3738
self.cursor = self.connection.cursor()
3839

0 commit comments

Comments
 (0)