summary refs log tree commit diff
path: root/synapse/storage/data_stores
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-11-07 14:57:15 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-07 14:57:15 +0000
commitb9cba079628db11951fc5ed30b03e8825eb954d7 (patch)
treea243065506cd4ad6361a0e51819a2a42a080ac91 /synapse/storage/data_stores
parentOnly join on event_labels if we're filtering on labels (diff)
downloadsynapse-b9cba079628db11951fc5ed30b03e8825eb954d7.tar.xz
Lint
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r--synapse/storage/data_stores/main/stream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/data_stores/main/stream.py b/synapse/storage/data_stores/main/stream.py
index 064f602a65..90bb2d8e8f 100644
--- a/synapse/storage/data_stores/main/stream.py
+++ b/synapse/storage/data_stores/main/stream.py
@@ -876,7 +876,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
         if event_filter and event_filter.labels:
             # If we're not filtering on a label, then joining on event_labels will
             # return as many row for a single event as the number of labels it has. To
-            # avoid this, only join if we're filtering on at least one label. 
+            # avoid this, only join if we're filtering on at least one label.
             join_clause = (
                 "LEFT JOIN event_labels"
                 " USING (event_id, room_id, topological_ordering)"
@@ -901,7 +901,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
             "select_keywords": select_keywords,
             "join_clause": join_clause,
             "bounds": bounds,
-            "order": order
+            "order": order,
         }
 
         txn.execute(sql, args)