Tesneem commited on
Commit
4f73385
·
verified ·
1 Parent(s): fabfbc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = summary_doc.get("most_consistent")
272
- most_developed = summary_doc.get("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