Skip to content

Commit

Permalink
Conform elif statement code style
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Allan <daniel.b.allan@gmail.com>
  • Loading branch information
Kezzsim and danielballan authored Oct 25, 2023
1 parent ed9686a commit 69c83e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiled/catalog/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def binary_op(query, tree, operation):
if dialect_name == "sqlite":
condition = operation(_get_value(attr, type(query.value)), query.value)
# specific case where GIN optomized index can be used to speed up POSTGRES equals queries
elif dialect_name == "postgresql" and operation == operator.eq:
elif (dialect_name == "postgresql") and (operation == operator.eq):
condition = orm.Node.metadata_.op("@>")(
type_coerce(
{keys[0]: reduce(lambda x, y: {y: x}, keys[1:][::-1], query.value)},
Expand Down

0 comments on commit 69c83e1

Please sign in to comment.