X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomtask%2Fhttp.py;h=deadb21f88c65726aa7544c810922f2712600e36;hb=e825a876e82ffbedf0234f4dfb6d6055d9e29241;hp=64cc6f95871174c71badbf495f9f3dfe56f74cc1;hpb=a7adce16f1969400cb988ff900f504157e454cce;p=plomtask diff --git a/plomtask/http.py b/plomtask/http.py index 64cc6f9..deadb21 100644 --- a/plomtask/http.py +++ b/plomtask/http.py @@ -200,11 +200,7 @@ class TaskHandler(BaseHTTPRequestHandler): process = Process.by_id(self.conn, process_id) todo = Todo(None, process, False, day.date) todo.save(self.conn) - for step in todo.process.explicit_steps: - for t in [t for t in existing_todos - if t.process.id_ == step.step_process_id]: - todo.add_child(t) - break + todo.adopt_from(existing_todos) todo.save(self.conn) def do_POST_todo(self) -> None: