fix tsm search again

pull/3567/head
Matthew Hodgson 2018-03-16 01:43:37 +00:00
parent f7dcc404f2
commit 4f0493c850
1 changed files with 4 additions and 5 deletions

View File

@ -510,8 +510,8 @@ class SyncHandler(object):
if filter_members:
logger.info("Finding members from %r", state_ids)
member_state_ids = {
e: state_ids[e]
for e in state_ids if state_ids[e][0] == EventTypes.Member
t: state_ids[t]
for t in state_ids if t[0] == EventTypes.Member
}
logger.info("Found members %r", member_state_ids)
@ -543,9 +543,8 @@ class SyncHandler(object):
if filter_members:
logger.info("Finding members from %r", state_at_timeline_start)
member_state_ids = {
e: state_at_timeline_start[e]
for e in state_at_timeline_start
if state_at_timeline_start[e][0] == EventTypes.Member
t: state_at_timeline_start[t]
for t in state_at_timeline_start if t[0] == EventTypes.Member
}
logger.info("Found members %r", member_state_ids)