X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=plomtask%2Fhttp.py;h=7e2b241aec468a8b6c29221b6f146a702b990883;hb=23012cd370777b60a25839788d131173d2abee91;hp=800193ce49ab7c90a1ff00add0a9d3fd32cf8b4e;hpb=2c3365447f36c26f2f55cc2a1b42a1e3ad0a8db9;p=plomtask diff --git a/plomtask/http.py b/plomtask/http.py index 800193c..7e2b241 100644 --- a/plomtask/http.py +++ b/plomtask/http.py @@ -273,6 +273,10 @@ class TaskHandler(BaseHTTPRequestHandler): def do_POST_condition(self) -> str: """Update/insert Condition of ?id= and fields defined in postvars.""" id_ = self.params.get_int_or_none('id') + for _ in self.form_data.get_all_str('delete'): + condition = Condition.by_id(self.conn, id_) + condition.remove(self.conn) + return '/conditions' condition = Condition.by_id(self.conn, id_, create=True) condition.title.set(self.form_data.get_str('title')) condition.description.set(self.form_data.get_str('description'))