Skip to content

Migrate To-Do List Storage to SQLite#9

Open
sweep-ai-deprecated[bot] wants to merge 2 commits intomasterfrom
sweep/migrate-to-sqlite
Open

Migrate To-Do List Storage to SQLite#9
sweep-ai-deprecated[bot] wants to merge 2 commits intomasterfrom
sweep/migrate-to-sqlite

Conversation

@sweep-ai-deprecated
Copy link

This PR addresses issue #8, which requested the migration of the to-do list storage from a text file to a SQLite database.

Here's a summary of the changes:

  • Created a new SQLite database file todo_db.sqlite to store the to-do list items.
  • Updated the append_to_do, delete_to_do, and get_to_do_list_from_file functions in todo.py to interact with the SQLite database instead of the text file.
  • Added exception handling to these functions to catch and handle any errors that occur while interacting with the database.

These changes should make the to-do list feature more robust and efficient.

Please review and let me know if any changes are needed.

Fixes #8.

To checkout this PR branch, run the following command in your terminal:

git checkout sweep/migrate-to-sqlite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweep: Migrate ohno/todo.py to sqlite from existing approach of .txt file

0 participants