FrnklnWrld commited on
Commit
53d5b4c
·
verified ·
1 Parent(s): c958c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -528,7 +528,8 @@ def compute_summary(answers: List[Dict], category: str, journey: Dict) -> Tuple[
528
 
529
  low_answers = [a for a in answers if a.get("score", 0) < 3]
530
  new_loopholes = [f"Low in Q{a.get('question_num')}" for a in low_answers]
531
- all_loopholes = list(set(journey.get("main_loopholes", []) + new_loopholes))
 
532
 
533
  return summary, all_loopholes
534
 
 
528
 
529
  low_answers = [a for a in answers if a.get("score", 0) < 3]
530
  new_loopholes = [f"Low in Q{a.get('question_num')}" for a in low_answers]
531
+ main_loopholes = journey.get("main_loopholes") or []
532
+ all_loopholes = list(set(main_loopholes + new_loopholes))
533
 
534
  return summary, all_loopholes
535