Commit 204f3e79 by chrisndodge

Merge pull request #231 from edx/cdodge/analytics-tweeks

tweeks
parents 089e1d69 977563bf
...@@ -213,8 +213,7 @@ def add_allowance_for_user(exam_id, user_info, key, value): ...@@ -213,8 +213,7 @@ def add_allowance_for_user(exam_id, user_info, key, value):
if student_allowance is not None: if student_allowance is not None:
# emit an event for 'allowance.created|updated' # emit an event for 'allowance.created|updated'
data = { data = {
'allowance_user': student_allowance.user, 'allowance_user_id': student_allowance.user.id,
'allowance_proctored_exam': student_allowance.proctored_exam,
'allowance_key': student_allowance.key, 'allowance_key': student_allowance.key,
'allowance_value': student_allowance.value 'allowance_value': student_allowance.value
} }
...@@ -250,8 +249,7 @@ def remove_allowance_for_user(exam_id, user_id, key): ...@@ -250,8 +249,7 @@ def remove_allowance_for_user(exam_id, user_id, key):
# emit an event for 'allowance.deleted' # emit an event for 'allowance.deleted'
data = { data = {
'allowance_user': student_allowance.user, 'allowance_user_id': student_allowance.user.id,
'allowance_proctored_exam': student_allowance.proctored_exam,
'allowance_key': student_allowance.key, 'allowance_key': student_allowance.key,
'allowance_value': student_allowance.value 'allowance_value': student_allowance.value
} }
......
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