Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
| 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 |
|