0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-12 04:52:26 +01:00

PR feedbackz

This commit is contained in:
Matthew Hodgson 2018-03-13 18:07:55 +00:00
parent 1b1c137771
commit 52f7e23c72

View file

@ -240,10 +240,9 @@ class StateGroupWorkerStore(SQLBaseStore):
( (
"AND type = ? AND state_key = ?", "AND type = ? AND state_key = ?",
(etype, state_key) (etype, state_key)
) if state_key is not None else ) if state_key is not None else (
(
"AND type = ?", "AND type = ?",
(etype) (etype,)
) )
for etype, state_key in types for etype, state_key in types
] ]