fixed 'if return_json' issues
Browse files
crew.py
CHANGED
|
@@ -255,8 +255,8 @@ def calculate_dementia_risk_lifestyle(docID: str, return_json: bool = False) ->
|
|
| 255 |
}
|
| 256 |
|
| 257 |
if return_json:
|
| 258 |
-
return result_dict
|
| 259 |
-
|
| 260 |
# Original string report
|
| 261 |
explanation = (
|
| 262 |
f"Based on lifestyle factors including diet, physical activity, and medical history, "
|
|
|
|
| 255 |
}
|
| 256 |
|
| 257 |
if return_json:
|
| 258 |
+
return {"status": "success", **result_dict}
|
| 259 |
+
|
| 260 |
# Original string report
|
| 261 |
explanation = (
|
| 262 |
f"Based on lifestyle factors including diet, physical activity, and medical history, "
|