Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
31f6e07f
Commit
31f6e07f
authored
Jul 24, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmlwitch
parent
8ea06bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
olapy/core/services/xmla_execute_tools.py
olapy/core/services/xmla_execute_tools.py
+5
-8
No files found.
olapy/core/services/xmla_execute_tools.py
View file @
31f6e07f
...
...
@@ -296,7 +296,6 @@ class XmlaExecuteTools():
:param mdx_execution_result: mdx_execute() result
:return: CellData as string
"""
columns_loop
=
[]
if
((
len
(
mdx_execution_result
[
'columns_desc'
][
'columns'
].
keys
())
==
0
)
^
...
...
@@ -320,18 +319,16 @@ class XmlaExecuteTools():
index
=
False
)
])
cell_data
=
""
xml
=
xmlwitch
.
Builder
()
index
=
0
for
value
in
columns_loop
:
if
np
.
isnan
(
value
):
value
=
''
cell_data
+=
"""
<Cell CellOrdinal="{0}">
<Value xsi:type="xsi:long">{1}</Value>
</Cell>
"""
.
format
(
index
,
value
)
with
xml
.
Cell
(
CellOrdinal
=
str
(
index
)):
xml
.
Value
(
str
(
value
),
**
{
'xsi:type'
:
'xsi:long'
})
index
+=
1
return
cell_data
return
str
(
xml
)
def
generate_axes_info_slicer
(
self
,
mdx_execution_result
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment