From: Christian Heller Date: Mon, 29 Apr 2024 03:16:39 +0000 (+0200) Subject: Fix Condition status not being saved on setting Todo.is_done from Day view. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/calendar_export?a=commitdiff_plain;h=de2aaabbc463da2f1f55fe6279c4d0410d5b894b;p=plomtask Fix Condition status not being saved on setting Todo.is_done from Day view. --- 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: