diff options
author | Joris | 2020-05-10 15:55:32 +0200 |
---|---|---|
committer | Joris | 2020-05-10 15:55:32 +0200 |
commit | 3e1415c738facb8b0274adb50ae65f218fd59c9b (patch) | |
tree | d839857b99d0606dec6ace33ede88c0080c8bad1 /src/db | |
parent | 45414a031909a360a025048592566e14cd71e5be (diff) |
Parse database command line argument
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/init.py | 2 |
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(" |