fix tsm search again

This commit is contained in:
Matthew Hodgson 2018-03-16 01:43:37 +00:00
parent f7dcc404f2
commit 4f0493c850

View file

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