summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-06-22 17:51:40 +0100
committerDavid Baker <dave@matrix.org>2016-06-22 17:51:40 +0100
commitf73fdb04a6cc361e9396c9b22f81544ecfb895bd (patch)
tree34fb8990ac8b7892ff6077cf3ae4a9ac80df0313 /synapse/storage
parentPut most recent 20 messages in notif (diff)
downloadsynapse-f73fdb04a6cc361e9396c9b22f81544ecfb895bd.tar.xz
Style
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/event_push_actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index 5aaaf4b19d..2e85cf5f51 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -192,7 +192,7 @@ class EventPushActionsStore(SQLBaseStore):
                 "actions": json.loads(row[3]),
                 "received_ts": row[4],
             } for row in after_read_receipt + no_read_receipt
-        ][0:limit])
+        ][:limit])
 
     @defer.inlineCallbacks
     def get_time_of_last_push_action_before(self, stream_ordering):