From cba28cfe8bc75d81adcf28bbb9ea63c00737242a Mon Sep 17 00:00:00 2001 From: hebel <43147008+7hebel@users.noreply.github.com> Date: Sun, 24 Nov 2024 21:34:24 +0100 Subject: [PATCH] Update _vars.py Fix the sql OperationalError ocurring due to the invalid DATABASE_CONN_STRING protocol's `/` amount --- dooit/api/_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dooit/api/_vars.py b/dooit/api/_vars.py index 1cacf9a5..009c4ea6 100644 --- a/dooit/api/_vars.py +++ b/dooit/api/_vars.py @@ -3,6 +3,6 @@ ROOT_FOLDER = Path(user_data_dir("dooit")) DATABASE_FILE = ROOT_FOLDER / "dooit.db" -DATABASE_CONN_STRING = f"sqlite:////{DATABASE_FILE}" +DATABASE_CONN_STRING = f"sqlite:///{DATABASE_FILE}" DATABASE_FILE.parent.mkdir(parents=True, exist_ok=True)