undo last change
Browse files- handler.py +4 -4
handler.py
CHANGED
@@ -500,9 +500,9 @@ class EndpointHandler():
|
|
500 |
word_cloud, uptake_word_cloud, teacher_general_cloud, student_general_cloud = transcript.get_word_clouds()
|
501 |
teacher_cloud = teacher_math_cloud + teacher_general_cloud
|
502 |
student_cloud = student_math_cloud + student_general_cloud
|
503 |
-
sorted_teacher_cloud = sorted(teacher_cloud, key=lambda x: x['value'], reverse=True)[:50]
|
504 |
-
sorted_student_cloud = sorted(student_cloud, key=lambda x: x['value'], reverse=True)[:50]
|
505 |
-
return_dict['teacherTopWords'] =
|
506 |
-
return_dict['studentTopWords'] =
|
507 |
|
508 |
return return_dict
|
|
|
500 |
word_cloud, uptake_word_cloud, teacher_general_cloud, student_general_cloud = transcript.get_word_clouds()
|
501 |
teacher_cloud = teacher_math_cloud + teacher_general_cloud
|
502 |
student_cloud = student_math_cloud + student_general_cloud
|
503 |
+
# sorted_teacher_cloud = sorted(teacher_cloud, key=lambda x: x['value'], reverse=True)[:50]
|
504 |
+
# sorted_student_cloud = sorted(student_cloud, key=lambda x: x['value'], reverse=True)[:50]
|
505 |
+
return_dict['teacherTopWords'] = teacher_cloud
|
506 |
+
return_dict['studentTopWords'] = student_cloud
|
507 |
|
508 |
return return_dict
|