From dbc8aff1d1bd3f65e4e63d048f17fcd3daaef359 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 17 Jun 2024 14:39:26 +0200 Subject: [PATCH] Fix Condition POSTing not properly setting .is_active. --- plomtask/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2