From 3e1415c738facb8b0274adb50ae65f218fd59c9b Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 10 May 2020 15:55:32 +0200 Subject: Parse database command line argument --- src/db/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db') 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(" -- cgit v1.2.3