Skip to content
Snippets Groups Projects
Commit 8d107d51 authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Fix faulty update of learningProgress caused by missing socket broadcast

parent 37bd7776
Branches
Tags
No related merge requests found
......@@ -529,10 +529,8 @@ public class ARSnovaSocketIOServer implements ARSnovaSocket, NovaEventVisitor {
final String sessionKey = event.getSession().getKeyword();
this.reportAnswersToLecturerQuestionAvailable(event.getSession(), new Question(event.getQuestion()));
broadcastInSession(sessionKey, "countQuestionAnswersByQuestionId", questionService.getAnswerAndAbstentionCountInternal(event.getQuestion().get_id()));
// TODO: These events are currently unused. Uncomment once the client does something with the data.
//broadcastInSession(sessionKey, "countLectureQuestionAnswers", questionService.countLectureQuestionAnswersInternal(sessionKey));
//broadcastInSession(sessionKey, "countPreparationQuestionAnswers", questionService.countPreparationQuestionAnswersInternal(sessionKey));
broadcastInSession(sessionKey, "countLectureQuestionAnswers", questionService.countLectureQuestionAnswersInternal(sessionKey));
broadcastInSession(sessionKey, "countPreparationQuestionAnswers", questionService.countPreparationQuestionAnswersInternal(sessionKey));
// Update the unanswered count for the question variant that was answered.
final de.thm.arsnova.entities.Question question = event.getQuestion();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment