home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
014e59d
)
Fix Condition POSTing not properly setting .is_active.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 17 Jun 2024 12:39:26 +0000
(14:39 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 17 Jun 2024 12:39:26 +0000
(14:39 +0200)
plomtask/http.py
patch
|
blob
|
history
diff --git
a/plomtask/http.py
b/plomtask/http.py
index 55473ea85410f840a6bbfe32e41ba245b1a85202..a5e46132dec446952cc2c98cce153c890c6c310e 100644
(file)
--- a/
plomtask/http.py
+++ b/
plomtask/http.py
@@
-677,7
+677,7
@@
class TaskHandler(BaseHTTPRequestHandler):
condition.remove(self.conn)
return '/conditions'
condition = Condition.by_id(self.conn, id_, create=True)
- condition.is_active = self._form_data.get_
all_str('is_active') != []
+ condition.is_active = self._form_data.get_
str('is_active') == 'True'
condition.title.set(self._form_data.get_str('title'))
condition.description.set(self._form_data.get_str('description'))
condition.save(self.conn)