From de2aaabbc463da2f1f55fe6279c4d0410d5b894b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 29 Apr 2024 05:16:39 +0200 Subject: [PATCH] Fix Condition status not being saved on setting Todo.is_done from Day view. --- plomtask/http.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plomtask/http.py b/plomtask/http.py index 196540a..f5160f6 100644 --- a/plomtask/http.py +++ b/plomtask/http.py @@ -212,6 +212,10 @@ class TaskHandler(BaseHTTPRequestHandler): todo = Todo.by_id(self.conn, todo_id) todo.is_done = True todo.save(self.conn) + for condition in todo.enables: + condition.save(self.conn) + for condition in todo.disables: + condition.save(self.conn) return f'/day?date={date}' def do_POST_todo(self) -> str: -- 2.30.2