Commit 65ca95b6 authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog: Avoid single-use variables.

parent 371c8406
...@@ -95,9 +95,11 @@ class SearchKey(object): ...@@ -95,9 +95,11 @@ class SearchKey(object):
def buildSQLExpression(self, operator, value, column_map, only_group_columns, def buildSQLExpression(self, operator, value, column_map, only_group_columns,
group): group):
column_name = self.getColumn() return operator.asSQLExpression(
rendered_column = column_map.asSQLColumn(column_name, group=group) column_map.asSQLColumn(self.getColumn(), group=group),
return operator.asSQLExpression(rendered_column, value, only_group_columns) value,
only_group_columns,
)
def _renderValueAsSearchText(self, value, operator): 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