home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor tests refactoring.
[plomtask]
/
plomtask
/
http.py
diff --git
a/plomtask/http.py
b/plomtask/http.py
index 196540a9ace22bee3fa9b2b6ebe2220a6a36e7d4..f5160f64d2504a3cf40733668623e1475eaa0cd8 100644
(file)
--- 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)
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:
return f'/day?date={date}'
def do_POST_todo(self) -> str: