aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorJoris2020-05-10 15:55:32 +0200
committerJoris2020-05-10 15:55:32 +0200
commit3e1415c738facb8b0274adb50ae65f218fd59c9b (patch)
treed839857b99d0606dec6ace33ede88c0080c8bad1 /src/db
parent45414a031909a360a025048592566e14cd71e5be (diff)
Parse database command line argument
Diffstat (limited to 'src/db')
-rw-r--r--src/db/init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/init.py b/src/db/init.py
index 83e73f2..8fb7098 100644
--- a/src/db/init.py
+++ b/src/db/init.py
@@ -4,7 +4,7 @@ import time
def init(path):
is_db_new = not os.path.isfile(path)
- database = sqlite3.connect('database')
+ database = sqlite3.connect(path)
if is_db_new:
database.cursor().execute(
" CREATE TABLE IF NOT EXISTS tasks("