summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-03-13 18:07:55 +0000
committerMatthew Hodgson <matthew@matrix.org>2018-03-13 18:07:55 +0000
commit52f7e23c7276b2848aa5291d8b78875b7c32a658 (patch)
treeda6f056ffc29da224d2e4ccbd384d12605a87c80
parentfix bug #2926 (diff)
downloadsynapse-52f7e23c7276b2848aa5291d8b78875b7c32a658.tar.xz
PR feedbackz
-rw-r--r--synapse/storage/state.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 783cebb351..77259a3141 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -240,10 +240,9 @@ class StateGroupWorkerStore(SQLBaseStore):
                     (
                         "AND type = ? AND state_key = ?",
                         (etype, state_key)
-                    ) if state_key is not None else
-                    (
+                    ) if state_key is not None else (
                         "AND type = ?",
-                        (etype)
+                        (etype,)
                     )
                     for etype, state_key in types
                 ]