From 69c83e1b98ae6a250c7604c1cf06f417b253659e Mon Sep 17 00:00:00 2001 From: Kari Barry Date: Wed, 25 Oct 2023 12:46:23 -0400 Subject: [PATCH] Conform elif statement code style Co-authored-by: Dan Allan --- tiled/catalog/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiled/catalog/adapter.py b/tiled/catalog/adapter.py index 1ed736a60..a415b50a8 100644 --- a/tiled/catalog/adapter.py +++ b/tiled/catalog/adapter.py @@ -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)},