mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-28 21:22:02 +00:00
pep8
This commit is contained in:
parent
4d0cfef6ee
commit
9f77001e27
@ -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)) + ")"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user