X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomtask%2Fhttp.py;h=a5e46132dec446952cc2c98cce153c890c6c310e;hb=84ff28d055b785e5f205f942c68ece72136e5af1;hp=55473ea85410f840a6bbfe32e41ba245b1a85202;hpb=014e59d97c912cff4ae2922c1d9284c086694cf1;p=plomtask diff --git a/plomtask/http.py b/plomtask/http.py index 55473ea..a5e4613 100644 --- 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)