Commit 82f80927 authored by mouadh's avatar mouadh

set comprehensions instead of passing lists to set()

parent 1e9bffab
...@@ -372,10 +372,10 @@ class XmlaExecuteTools(): ...@@ -372,10 +372,10 @@ class XmlaExecuteTools():
hierarchy_info_slicer = "" hierarchy_info_slicer = ""
slicer_list = list( slicer_list = list(
set(all_dimensions_names) - set([ set(all_dimensions_names) - set(
table_name table_name
for table_name in mdx_execution_result['columns_desc']['all'] for table_name in mdx_execution_result['columns_desc']['all']
])) ))
# we have to write measures after dimensions ! # we have to write measures after dimensions !
if 'Measures' in slicer_list: if 'Measures' in slicer_list:
...@@ -550,11 +550,10 @@ class XmlaExecuteTools(): ...@@ -550,11 +550,10 @@ class XmlaExecuteTools():
# not used dimensions # not used dimensions
for dim_diff in list( for dim_diff in list(
set(self.executer.get_all_tables_names(ignore_fact=True)) - set( set(self.executer.get_all_tables_names(ignore_fact=True)) - set(
[
table_name table_name
for table_name in mdx_execution_result['columns_desc'][ for table_name in mdx_execution_result['columns_desc'][
'all'] 'all']
])): )):
tuple += """ tuple += """
<Member Hierarchy="[{0}].[{0}]"> <Member Hierarchy="[{0}].[{0}]">
<UName>[{0}].[{0}].[{1}].[{2}]</UName> <UName>[{0}].[{0}].[{1}].[{2}]</UName>
......
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