Commit 0d777a7a by Vik Paruchuri

Convert to passing in current task state again

parent 904ed6c8
...@@ -273,7 +273,7 @@ class CombinedOpenEndedV1Module(): ...@@ -273,7 +273,7 @@ class CombinedOpenEndedV1Module():
}) })
self.current_task = child_task_module(self.system, self.location, self.current_task = child_task_module(self.system, self.location,
self.current_task_parsed_xml, self.current_task_descriptor, self.static_data, self.current_task_parsed_xml, self.current_task_descriptor, self.static_data,
instance_state=self.instance_state, model_data = self._model_data, task_number = self.current_task_number) instance_state=current_task_state)
self.task_states.append(self.current_task.get_instance_state()) self.task_states.append(self.current_task.get_instance_state())
self.state = self.ASSESSING self.state = self.ASSESSING
else: else:
...@@ -281,7 +281,7 @@ class CombinedOpenEndedV1Module(): ...@@ -281,7 +281,7 @@ class CombinedOpenEndedV1Module():
current_task_state = self.overwrite_state(current_task_state) current_task_state = self.overwrite_state(current_task_state)
self.current_task = child_task_module(self.system, self.location, self.current_task = child_task_module(self.system, self.location,
self.current_task_parsed_xml, self.current_task_descriptor, self.static_data, self.current_task_parsed_xml, self.current_task_descriptor, self.static_data,
instance_state=self.instance_state, model_data = self._model_data, task_number = self.current_task_number) instance_state=current_task_state)
return True return True
......
...@@ -102,6 +102,7 @@ class OpenEndedChild(object): ...@@ -102,6 +102,7 @@ class OpenEndedChild(object):
except: except:
self.child_attempts = 0 self.child_attempts = 0
self.max_attempts = static_data['max_attempts']
self.child_prompt = static_data['prompt'] self.child_prompt = static_data['prompt']
self.child_rubric = static_data['rubric'] self.child_rubric = static_data['rubric']
self.display_name = static_data['display_name'] self.display_name = static_data['display_name']
...@@ -277,7 +278,7 @@ class OpenEndedChild(object): ...@@ -277,7 +278,7 @@ class OpenEndedChild(object):
return Progress(self.get_score()['score'], self._max_score) return Progress(self.get_score()['score'], self._max_score)
except Exception as err: except Exception as err:
#This is a dev_facing_error #This is a dev_facing_error
log.exception("Got bad progress from open ended child module. Max Score: {1}".format(self._max_score)) log.exception("Got bad progress from open ended child module. Max Score: {0}".format(self._max_score))
return None return None
return None return None
......
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