X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=plomtask%2Fhttp.py;h=f5160f64d2504a3cf40733668623e1475eaa0cd8;hb=de2aaabbc463da2f1f55fe6279c4d0410d5b894b;hp=196540a9ace22bee3fa9b2b6ebe2220a6a36e7d4;hpb=fb317a554ed912736498a5b3917b40bb9bfd7489;p=plomtask 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: