Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,9 @@ class ToDictListEncoder(JSONEncoder):
|
|
140 |
|
141 |
def default(self, o):
|
142 |
"""Encode to JSON using to_dict."""
|
143 |
-
|
|
|
|
|
144 |
|
145 |
|
146 |
if st_return_decision_process:
|
|
|
140 |
|
141 |
def default(self, o):
|
142 |
"""Encode to JSON using to_dict."""
|
143 |
+
if o:
|
144 |
+
return o.to_dict()
|
145 |
+
return []
|
146 |
|
147 |
|
148 |
if st_return_decision_process:
|