vladyslav
commited on
Commit
·
9f2f337
1
Parent(s):
186dae7
Saving number of correct answers
Browse files- app.py +1 -0
- utils/db.py +3 -1
app.py
CHANGED
@@ -165,6 +165,7 @@ def summarize_results(student_name,
|
|
165 |
answers_correct,
|
166 |
interesting_question,
|
167 |
grade_12,
|
|
|
168 |
)
|
169 |
|
170 |
summary = (
|
|
|
165 |
answers_correct,
|
166 |
interesting_question,
|
167 |
grade_12,
|
168 |
+
correct_answers_count,
|
169 |
)
|
170 |
|
171 |
summary = (
|
utils/db.py
CHANGED
@@ -34,7 +34,8 @@ def save_results(student_name,
|
|
34 |
question_correct,
|
35 |
answers_correct,
|
36 |
interesting_question,
|
37 |
-
grade
|
|
|
38 |
print("Saving results")
|
39 |
collection.insert_one({
|
40 |
"student_name": student_name,
|
@@ -48,6 +49,7 @@ def save_results(student_name,
|
|
48 |
"feedback": feedback,
|
49 |
"rating": rating,
|
50 |
"grade": grade,
|
|
|
51 |
"created_at": db.command("serverStatus")["localTime"]
|
52 |
})
|
53 |
print("Saved results")
|
|
|
34 |
question_correct,
|
35 |
answers_correct,
|
36 |
interesting_question,
|
37 |
+
grade,
|
38 |
+
correct_answers):
|
39 |
print("Saving results")
|
40 |
collection.insert_one({
|
41 |
"student_name": student_name,
|
|
|
49 |
"feedback": feedback,
|
50 |
"rating": rating,
|
51 |
"grade": grade,
|
52 |
+
"correct_answers": correct_answers,
|
53 |
"created_at": db.command("serverStatus")["localTime"]
|
54 |
})
|
55 |
print("Saved results")
|