home · contact · privacy
On posting new Todo to Day, make missing Todo children not found through adoption.
[plomtask] / plomtask / http.py
index deadb21f88c65726aa7544c810922f2712600e36..8f247cd68cbfff0980fba2c97c64b1a3f77776dd 100644 (file)
@@ -201,6 +201,7 @@ class TaskHandler(BaseHTTPRequestHandler):
             todo = Todo(None, process, False, day.date)
             todo.save(self.conn)
             todo.adopt_from(existing_todos)
+            todo.make_missing_children(self.conn)
             todo.save(self.conn)
 
     def do_POST_todo(self) -> None: