This commit is contained in:
Erik Johnston 2018-06-01 11:53:06 +01:00
parent 9e7cf48461
commit e7bb34b72a
1 changed files with 2 additions and 2 deletions

View File

@ -774,7 +774,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
txn.execute(sql, args) txn.execute(sql, args)
rows = [_EventDictReturn(row[0], row[1], row[2], row[3]) for row in txn] rows = [_EventDictReturn(*row) for row in txn]
# If we are paginating topologically and we haven't hit the limit on # If we are paginating topologically and we haven't hit the limit on
# number of events then we need to fetch events from the previous or # number of events then we need to fetch events from the previous or
@ -824,7 +824,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
break break
txn.execute(sql, args) txn.execute(sql, args)
new_rows = [_EventDictReturn(row[0], row[1], row[2], row[3]) for row in txn] new_rows = [_EventDictReturn(*row) for row in txn]
if not new_rows: if not new_rows:
break break