Commit fb39111a by Jason Bau

Merge pull request #4417 from edx/jbau/event-responsetype

Change answer <-> response matching in capa.get_submission_metadata
parents 666f563e faff8c57
......@@ -1186,9 +1186,8 @@ class CapaMixin(CapaFields):
answer_response = None
for response, responder in self.lcp.responders.iteritems():
for other_input_id in self.lcp.responder_answers[response]:
if other_input_id == input_id:
answer_response = responder
if input_id in responder.answer_ids:
answer_response = responder
if answer_response is None:
log.warning('Answer responder could not be found for input_id %s.', input_id)
......
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