Commit 83971e2f by dragonfi

Publish grades until student completes exercise

parent 0d8925d5
......@@ -179,8 +179,9 @@ class DragAndDropBlock(XBlock):
if self._is_finished():
final_feedback = self.data['feedback']['finish']
# only publish the grade once
# don't publish the grade if the student has already completed the exercise
if not self.completed:
if self._is_finished():
self.completed = True
try:
self.runtime.publish(self, 'grade', {
......
Markdown is supported
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