Enable reading and writing to file

This commit is contained in:
Andrew committed 2025-11-30 22:54:21 -05:00
1 parent dc32e2c26e
commit 89d4adc0e2
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ class TodoManager:
return path.exists(self.filename)
def open_todo_file(self):
self.file = open(self.filename, "w")
self.file = open(self.filename, "r+")
return self.file
def read_todos(self) -> list[Todo]: