plutoa386 commited on
Commit
0b96efe
·
1 Parent(s): d604cc7

fixed 'if return_json' issues

Browse files
Files changed (1) hide show
  1. crew.py +2 -2
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, "