Commit afa64309 authored by Vincent Pelletier's avatar Vincent Pelletier

SimulationTool: Pop select_list when generating select_dict

Do not give conflicting instructions to portal_catalog.
parent d43bd352
......@@ -822,7 +822,7 @@ class SimulationTool(BaseTool):
# the caller can also pass select_dict or select_list. select_expression,
# which is deprecated in ZSQLCatalog is not supported here.
select_dict = kw.get('select_dict', {})
select_dict.update(dict.fromkeys(list(kw.get('select_list', [])) + related_group_by))
select_dict.update(dict.fromkeys(list(kw.pop('select_list', [])) + related_group_by))
new_kw['select_dict'] = select_dict
related_key_select_expression_list = []
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