Auto open todo file
This commit is contained in:
@@ -31,6 +31,7 @@ class TodoManager:
|
||||
|
||||
def get_todos(self) -> dict[str, Todo]:
|
||||
if not self.does_todo_file_exist():
|
||||
self.open_todo_file()
|
||||
return {}
|
||||
|
||||
todos = self.read_todos()
|
||||
|
||||
Reference in New Issue
Block a user