pull/3567/head
Matthew Hodgson 2018-03-14 00:07:47 +00:00
parent 4d0cfef6ee
commit 9f77001e27
1 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ class StateGroupWorkerStore(SQLBaseStore):
if include_other_types: if include_other_types:
# XXX: check whether this slows postgres down like a list of # XXX: check whether this slows postgres down like a list of
# ORs does too? # ORs does too?
unique_types = set([ t for (t, _) in types ]) unique_types = set([t for (t, _) in types])
clause_to_args.append( clause_to_args.append(
( (
"AND type <> ? " * len(unique_types), "AND type <> ? " * len(unique_types),
@ -294,7 +294,7 @@ class StateGroupWorkerStore(SQLBaseStore):
where_args.extend([typ[0], typ[1]]) where_args.extend([typ[0], typ[1]])
if include_other_types: if include_other_types:
unique_types = set([ t for (t, _) in types ]) unique_types = set([t for (t, _) in types])
where_clauses.append( where_clauses.append(
"(" + " AND ".join(["type <> ?"] * len(unique_types)) + ")" "(" + " AND ".join(["type <> ?"] * len(unique_types)) + ")"
) )