Commit d159c853 by dragonfi

Remove redundant ids from events

parent a4260ba5
...@@ -188,8 +188,6 @@ class DragAndDropBlock(XBlock): ...@@ -188,8 +188,6 @@ class DragAndDropBlock(XBlock):
pass pass
self.runtime.publish(self, 'xblock.drag-and-drop-v2.item.dropped', { self.runtime.publish(self, 'xblock.drag-and-drop-v2.item.dropped', {
'component_id': self.scope_ids.usage_id,
'user_id': self.runtime.user_id,
'item_id': item['id'], 'item_id': item['id'],
'location': attempt['zone'], 'location': attempt['zone'],
'is_correct': is_correct 'is_correct': is_correct
...@@ -209,9 +207,6 @@ class DragAndDropBlock(XBlock): ...@@ -209,9 +207,6 @@ class DragAndDropBlock(XBlock):
except KeyError as e: except KeyError as e:
return {'result': 'error', 'message': 'Missing event_type in JSON data'} return {'result': 'error', 'message': 'Missing event_type in JSON data'}
data['component_id'] = self.scope_ids.usage_id
data['user_id'] = self.runtime.user_id
self.runtime.publish(self, event_type, data) self.runtime.publish(self, event_type, data)
return {'result':'success'} return {'result':'success'}
......
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