Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-historical-archive
Commits
9acd6efa
Commit
9acd6efa
authored
Apr 28, 2019
by
Florian Pritz
Browse files
Use sqlite row factory
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
6c83997e
Changes
1
Hide whitespace changes
Inline
Side-by-side
DB.py
View file @
9acd6efa
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment