home · contact · privacy
Fix disablers_for/enablers_for in GET_day breaking as_dict.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 21 Jun 2024 00:28:16 +0000 (02:28 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 21 Jun 2024 00:28:16 +0000 (02:28 +0200)
plomtask/http.py

index 3d1dd5036f909a553e6678f171fcace7c379cafc..e1f5434bb2c1fb321a03c7343e022a24652e8978 100644 (file)
@@ -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