mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 04:34:28 +03:00
fix uninitialised var
This commit is contained in:
parent
6d836eb529
commit
3bccef4885
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||
# Turns out that postgres doesn't like doing a list of OR's and
|
||||
# is about 1000x slower, so we just issue a query for each specific
|
||||
# type seperately.
|
||||
additional_args = ()
|
||||
if types:
|
||||
clause_to_args = [
|
||||
(
|
||||
|
@ -195,6 +196,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||
# If types is None we fetch all the state, and so just use an
|
||||
# empty where clause with no extra args.
|
||||
clause_to_args = [("", [])]
|
||||
|
||||
for where_clause, where_args in clause_to_args:
|
||||
args = [room_id]
|
||||
args.extend(where_args)
|
||||
|
|
Loading…
Reference in a new issue