diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-03-13 18:07:55 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-03-13 18:07:55 +0000 |
commit | 52f7e23c7276b2848aa5291d8b78875b7c32a658 (patch) | |
tree | da6f056ffc29da224d2e4ccbd384d12605a87c80 | |
parent | fix bug #2926 (diff) | |
download | synapse-52f7e23c7276b2848aa5291d8b78875b7c32a658.tar.xz |
PR feedbackz
-rw-r--r-- | synapse/storage/state.py | 5 |
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 ] |