Commit 32a95844 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Eteri

ZSQLCatalog: Avoid single-use variables.

parent 5289682d
......@@ -95,9 +95,11 @@ class SearchKey(object):
def buildSQLExpression(self, operator, value, column_map, only_group_columns,
group):
column_name = self.getColumn()
rendered_column = column_map.asSQLColumn(column_name, group=group)
return operator.asSQLExpression(rendered_column, value, only_group_columns)
return operator.asSQLExpression(
column_map.asSQLColumn(self.getColumn(), group=group),
value,
only_group_columns,
)
def _renderValueAsSearchText(self, value, operator):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment