From: Christian Heller Date: Mon, 17 Jun 2024 12:39:26 +0000 (+0200) Subject: Fix Condition POSTing not properly setting .is_active. X-Git-Url: https://plomlompom.com/repos/foo.html?a=commitdiff_plain;h=dbc8aff1d1bd3f65e4e63d048f17fcd3daaef359;p=plomtask Fix Condition POSTing not properly setting .is_active. --- 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)