Commit aee6a83f by Justin Riley

add commented code that preserves the 'position' state

The 'position' state is clearly checked by get_student_status, however,
the code never restored 'position' from the state during a reset
before so enabling this now may change behavior. Leaving it
commented for now just in case it's indeed needed later on.
parent 37ae88e2
......@@ -97,6 +97,10 @@ class TreeNodeSet(list):
msg += " Resetting %s, old state=%s\n" % (module, state)
if not wipe_history and 'history' in old_state:
state['history'] = old_state['history']
# get_student_status uses this state but original code didn't
# preserve it so leaving it commented for now
# if 'position' in old_state:
# state['position'] = old_state['position']
module.smstate.state = json.dumps(state)
module.smstate.grade = None
module.smstate.save()
......
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