Skip to content

Commit

Permalink
Merge pull request #292 from edx/douglashall/SOL-1802/fix_support_tic…
Browse files Browse the repository at this point in the history
…ket_creation

SOL-1802 Fix proctored exam serialization bug
  • Loading branch information
Douglas Hall committed Jun 3, 2016
2 parents 13f398f + 4819560 commit 15bbc34
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions edx_proctoring/backends/software_secure.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,11 @@ def on_review_callback(self, payload):
'review_status': review.review_status,
}

serialized_attempt_obj = ProctoredExamStudentAttemptSerializer(attempt_obj)
attempt = serialized_attempt_obj.data
serialized_exam_object = ProctoredExamSerializer(attempt_obj.proctored_exam)
exam = serialized_exam_object.data
attempt = ProctoredExamStudentAttemptSerializer(attempt_obj).data
exam = ProctoredExamSerializer(attempt_obj.proctored_exam).data
emit_event(exam, 'review_received', attempt=attempt, override_data=data)

self._create_zendesk_ticket(review, serialized_exam_object, serialized_attempt_obj)
self._create_zendesk_ticket(review, exam, attempt)

def on_review_saved(self, review, allow_rejects=False): # pylint: disable=arguments-differ
"""
Expand Down

0 comments on commit 15bbc34

Please sign in to comment.