Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -267,9 +267,9 @@ def fetch_student_summary(uri, db, summaries_coll, responses_coll, student, stag
|
|
| 267 |
{"_id": 0, "most_consistent": 1, "most_developed": 1,
|
| 268 |
"top_strengths": 1, "notable_quotes": 1}
|
| 269 |
) or {}
|
| 270 |
-
|
| 271 |
-
most_consistent =
|
| 272 |
-
most_developed =
|
| 273 |
top_strengths = summary_doc.get("top_strengths", [])
|
| 274 |
notable_quotes = summary_doc.get("notable_quotes", [])
|
| 275 |
|
|
|
|
| 267 |
{"_id": 0, "most_consistent": 1, "most_developed": 1,
|
| 268 |
"top_strengths": 1, "notable_quotes": 1}
|
| 269 |
) or {}
|
| 270 |
+
patterns = doc.get("patterns", {}) or {}
|
| 271 |
+
most_consistent = patterns.get("most_consistent")
|
| 272 |
+
most_developed = patterns.get("most_developed")
|
| 273 |
top_strengths = summary_doc.get("top_strengths", [])
|
| 274 |
notable_quotes = summary_doc.get("notable_quotes", [])
|
| 275 |
|