Minor string to boolean fix

This commit is contained in:
Vik Paruchuri
2013-01-11 16:02:09 -05:00
parent 682ac3455b
commit 7d0bb7b3fe

View File

@@ -173,7 +173,7 @@ class CombinedOpenEndedModule(XModule):
loaded_task_state = json.loads(current_task_state)
if loaded_task_state['state'] == self.INITIAL:
loaded_task_state['state'] = self.ASSESSING
loaded_task_state['created'] = "True"
loaded_task_state['created'] = True
loaded_task_state['history'].append({'answer': last_response})
current_task_state = json.dumps(loaded_task_state)
return current_task_state