From: Christian Heller Date: Fri, 21 Jun 2024 00:28:16 +0000 (+0200) Subject: Fix disablers_for/enablers_for in GET_day breaking as_dict. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/ledger?a=commitdiff_plain;h=0ccae4d00a38cc04c41cd0ee68e2aed896144fce;p=plomtask Fix disablers_for/enablers_for in GET_day breaking as_dict. --- 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