Fix auth checks to all use the given old_event_state

This commit is contained in:
Erik Johnston 2014-11-05 11:07:54 +00:00
parent 4a5e95511e
commit 96c001e668
4 changed files with 53 additions and 33 deletions

View file

@ -188,11 +188,15 @@ class StateHandler(object):
consumeErrors=True
)
max_power = max([int(p) for p in new_powers])
new_powers = [
int(p) if p else 0 for p in new_powers
]
max_power = max(new_powers)
curr_events = [
z[0] for z in zip(curr_events, new_powers)
if int(z[1]) == max_power
if z[1] == max_power
]
if not curr_events: