-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the sql OperationalError bug #210
Conversation
Fix the sql OperationalError ocurring due to the invalid DATABASE_CONN_STRING protocol's `/` amount
@@ -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}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm..it does work normally without the extra /
but what about the OperationalError
? How do I reproduce it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was specific to windows. Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it seems to be windows-specific.
Fix the sql OperationalError ocurring due to the invalid DATABASE_CONN_STRING protocol's
/
amount