Commit 8c647126 authored by mouadh's avatar mouadh

fix response

parent 4ba40d5b
...@@ -200,24 +200,24 @@ class XmlaExecuteTools(): ...@@ -200,24 +200,24 @@ class XmlaExecuteTools():
# ]), tuple_without_minus_1[-1], # ]), tuple_without_minus_1[-1],
# len(tuple_without_minus_1) - first_att) # len(tuple_without_minus_1) - first_att)
# PARENT_UNIQUE_NAME must be before HIERARCHY_UNIQUE_NAME # PARENT_UNIQUE_NAME must be before HIERARCHY_UNIQUE_NAME
if len(tuple_without_minus_1[first_att - 1:]) > 1: if len(tuple_without_minus_1[first_att - 1:]) > 1:
xml.PARENT_UNIQUE_NAME('[{0}].[{0}].[{1}].{2}'.format( xml.PARENT_UNIQUE_NAME('[{0}].[{0}].[{1}].{2}'.format(
tuple_without_minus_1[0], tuple_without_minus_1[0],
splited_df[tuple_without_minus_1[0]].columns[0], splited_df[tuple_without_minus_1[0]].columns[0],
'.'.join([ '.'.join([
'[' + str(i) + ']' '[' + str(i) + ']'
for i in tuple_without_minus_1[first_att - 1:-1] for i in tuple_without_minus_1[first_att - 1:-1]
]))) ])))
# axis0 += """ # axis0 += """
# <PARENT_UNIQUE_NAME>[{0}].[{0}].[{1}].{2}</PARENT_UNIQUE_NAME>""".format( # <PARENT_UNIQUE_NAME>[{0}].[{0}].[{1}].{2}</PARENT_UNIQUE_NAME>""".format(
# tuple_without_minus_1[0], # tuple_without_minus_1[0],
# splited_df[tuple_without_minus_1[0]].columns[0], # splited_df[tuple_without_minus_1[0]].columns[0],
# '.'.join([ # '.'.join([
# '[' + str(i) + ']' # '[' + str(i) + ']'
# for i in tuple_without_minus_1[first_att - 1:-1] # for i in tuple_without_minus_1[first_att - 1:-1]
# ])) # ]))
xml.HIERARCHY_UNIQUE_NAME('[{0}].[{0}]'.format(tuple_without_minus_1[0])) xml.HIERARCHY_UNIQUE_NAME('[{0}].[{0}]'.format(tuple_without_minus_1[0]))
# axis0 += """ # axis0 += """
# <HIERARCHY_UNIQUE_NAME>[{0}].[{0}]</HIERARCHY_UNIQUE_NAME> # <HIERARCHY_UNIQUE_NAME>[{0}].[{0}]</HIERARCHY_UNIQUE_NAME>
# </Member> # </Member>
......
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