Skip to content

Commit

Permalink
Update _vars.py
Browse files Browse the repository at this point in the history
Fix the sql OperationalError ocurring due to the invalid DATABASE_CONN_STRING protocol's `/` amount
  • Loading branch information
7hebel authored Nov 24, 2024
1 parent 3ab2375 commit cba28cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dooit/api/_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cba28cf

Please sign in to comment.