mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 00:50:10 +00:00
Reformat
This commit is contained in:
parent
f0128f9600
commit
d7e8ea67b3
1 changed files with 14 additions and 13 deletions
|
@ -446,7 +446,8 @@ class SQLBaseStore(object):
|
||||||
if len(event_ids) > 50:
|
if len(event_ids) > 50:
|
||||||
events = []
|
events = []
|
||||||
n = 50
|
n = 50
|
||||||
for e_ids in [event_ids[i:i + n] for i in range(0, len(event_ids), n)]:
|
split = [event_ids[i:i + n] for i in range(0, len(event_ids), n)]
|
||||||
|
for e_ids in split:
|
||||||
events.extend(self._get_events_txn(txn, e_ids))
|
events.extend(self._get_events_txn(txn, e_ids))
|
||||||
return events
|
return events
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue