mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 16:24:10 -04:00
Misc. py3 fixes
Signed-off-by: Adrian Tschira <nota@notafile.com>
This commit is contained in:
parent
7ea07c7305
commit
17a70cf6e9
5 changed files with 13 additions and 11 deletions
|
@ -337,7 +337,7 @@ class EventsWorkerStore(SQLBaseStore):
|
|||
def _fetch_event_rows(self, txn, events):
|
||||
rows = []
|
||||
N = 200
|
||||
for i in range(1 + len(events) / N):
|
||||
for i in range(1 + len(events) // N):
|
||||
evs = events[i * N:(i + 1) * N]
|
||||
if not evs:
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue