Commit 3c882656 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Eteri

SimulationTool: Pop select_list when generating select_dict

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