home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df81cce
)
Fix disablers_for/enablers_for in GET_day breaking as_dict.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 21 Jun 2024 00:28:16 +0000
(
02:28
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 21 Jun 2024 00:28:16 +0000
(
02:28
+0200)
plomtask/http.py
patch
|
blob
|
history
diff --git
a/plomtask/http.py
b/plomtask/http.py
index 3d1dd5036f909a553e6678f171fcace7c379cafc..e1f5434bb2c1fb321a03c7343e022a24652e8978 100644
(file)
--- 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