Commit 5c7e6415 by Vik Paruchuri Committed by Victor Shnayder

Modify capa types

parent 79941271
......@@ -1867,12 +1867,14 @@ class OpenEndedResponse(LoncapaResponse):
else:
self.initial_display = ''
grader_type = oeparam.find('initial_display')
grader_type = oeparam.find('grader_type')
if grader_type is not None:
self.grader_type = grader_type.text
else:
self.grader_type='ml'
self.answer="None available."
def get_score(self, student_answers):
try:
# Note that submission can be a file
......@@ -1912,6 +1914,7 @@ class OpenEndedResponse(LoncapaResponse):
# Submit request. When successful, 'msg' is the prior length of the queue
contents.update({'student_response': submission})
contents.update({'grader_type' : self.grader_type})
log.debug(contents)
(error, msg) = qinterface.send_to_queue(header=xheader,
body=json.dumps(contents))
......
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