Commit 9f15acce by Justin Riley

use json.loads when checking for duplicate states

Can't compare JSON strings reliably since the order of keys may change
between loads/dumps.
parent 804fca6c
......@@ -382,10 +382,11 @@ class ProctorModuleInfo(object):
entries = []
for entry in history_entries:
if entry.state in seen_states:
state = json.loads(entry.state)
if state in seen_states:
continue
else:
seen_states.append(entry.state)
seen_states.append(state)
entries.append(entry)
context = {
......
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