From 516207a96671a82fdd4a285d9628bb5e79bf67f7 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 23 May 2018 11:37:25 +0100 Subject: Fix non integer limit --- synapse/storage/stream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index 65919ac7be..d048dd9579 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -757,7 +757,8 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): bounds += " AND " + filter_clause args.extend(filter_args) - args.append(int(limit)) + limit = int(limit) + args.append(limit) sql = ( "SELECT event_id, chunk_id, topological_ordering, stream_ordering" -- cgit 1.4.1