From 0ccae4d00a38cc04c41cd0ee68e2aed896144fce Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Fri, 21 Jun 2024 02:28:16 +0200 Subject: [PATCH] Fix disablers_for/enablers_for in GET_day breaking as_dict. --- plomtask/http.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plomtask/http.py b/plomtask/http.py index 3d1dd50..e1f5434 100644 --- a/plomtask/http.py +++ b/plomtask/http.py @@ -48,6 +48,11 @@ class TaskServer(HTTPServer): return node.as_dict if isinstance(node, (list, tuple)): return [walk_ctx(x) for x in node] + if isinstance(node, dict): + d = {} + for k, v in node.items(): + d[k] = walk_ctx(v) + return d if isinstance(node, HandledException): return str(node) return node -- 2.30.2