Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
8d107d51
Commit
8d107d51
authored
9 years ago
by
Andreas Gärtner
Browse files
Options
Downloads
Patches
Plain Diff
Fix faulty update of learningProgress caused by missing socket broadcast
parent
37bd7776
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
+2
-4
2 additions, 4 deletions
...ain/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
with
2 additions
and
4 deletions
src/main/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
+
2
−
4
View file @
8d107d51
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment