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
d9973b89
Commit
d9973b89
authored
May 03, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Omit `len()` for indexing/slicing
parent
76643873
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
olapy/core/services/xmla_execute_tools.py
olapy/core/services/xmla_execute_tools.py
+2
-3
olapy/web/templates/pivottablejs.html
olapy/web/templates/pivottablejs.html
+11
-11
No files found.
olapy/core/services/xmla_execute_tools.py
View file @
d9973b89
...
...
@@ -74,10 +74,9 @@ class XmlaExecuteTools():
:return: tuple as list without -1
"""
for
index
,
att
in
enumerate
(
tuple
[::
-
1
]):
for
att
in
tuple
[::
-
1
]:
if
att
!=
-
1
:
return
tuple
[:
len
(
tuple
)
-
index
]
return
tuple
[:
tuple
.
index
(
att
)
+
1
]
return
tuple
...
...
olapy/web/templates/pivottablejs.html
View file @
d9973b89
...
...
@@ -57,17 +57,17 @@
).
show
();
});
</script>
<div
id=
"output"
style=
"display: none;"
>
,Day,City,Licence,Amount,Count,Co
ntinent,Country,Company,Article
,Year,Quarter,Month
0,"May 12,2010",Madrid,Personal,1,84,
Europe,Spain,Crazy Development,olapy
,2010,Q2 2010,May 2010
1,"May 13,2010",Barcelona,Personal,2,841,
Europe,Spain,Crazy Development,olapy
,2010,Q2 2010,May 2010
2,"May 14,2010",Paris,Personal,4,2,
Europe,France,Crazy Development,olapy
,2010,Q2 2010,May 2010
3,"May 15,2010",Lausanne,Personal,8,231,
Europe,Switzerland,Crazy Development,olapy
,2010,Q2 2010,May 2010
4,"May 16,2010",Lausanne,Corporate,16,4,
Europe,Switzerland,Crazy Development,olapy
,2010,Q2 2010,May 2010
5,"May 1
9,2010",Geneva,Corporate,128,13,Europe,Switzerland,Crazy Development,olapy
,2010,Q2 2010,May 2010
6,"May
20,2010",New York,Corporate,256,12,America,United States,Crazy Development,olapy
,2010,Q2 2010,May 2010
7,"May 2
1,2010",New York,Corporate,512,564,America,United States,Crazy Development,olapy
,2010,Q2 2010,May 2010
8,"May
17,2010",Lausanne,Partnership,32,65,Europe,Switzerland,Crazy Development,olapy
,2010,Q2 2010,May 2010
9,"May 18,2010",Zurich,Partnership,64,64,
Europe,Switzerland,Crazy Development,olapy
,2010,Q2 2010,May 2010
<div
id=
"output"
style=
"display: none;"
>
,Day,City,Licence,Amount,Count,Co
mpany,Article,Continent,Country
,Year,Quarter,Month
0,"May 12,2010",Madrid,Personal,1,84,
Crazy Development,olapy,Europe,Spain
,2010,Q2 2010,May 2010
1,"May 13,2010",Barcelona,Personal,2,841,
Crazy Development,olapy,Europe,Spain
,2010,Q2 2010,May 2010
2,"May 14,2010",Paris,Personal,4,2,
Crazy Development,olapy,Europe,France
,2010,Q2 2010,May 2010
3,"May 15,2010",Lausanne,Personal,8,231,
Crazy Development,olapy,Europe,Switzerland
,2010,Q2 2010,May 2010
4,"May 16,2010",Lausanne,Corporate,16,4,
Crazy Development,olapy,Europe,Switzerland
,2010,Q2 2010,May 2010
5,"May 1
7,2010",Lausanne,Partnership,32,65,Crazy Development,olapy,Europe,Switzerland
,2010,Q2 2010,May 2010
6,"May
19,2010",Geneva,Corporate,128,13,Crazy Development,olapy,Europe,Switzerland
,2010,Q2 2010,May 2010
7,"May 2
0,2010",New York,Corporate,256,12,Crazy Development,olapy,America,United States
,2010,Q2 2010,May 2010
8,"May
21,2010",New York,Corporate,512,564,Crazy Development,olapy,America,United States
,2010,Q2 2010,May 2010
9,"May 18,2010",Zurich,Partnership,64,64,
Crazy Development,olapy,Europe,Switzerland
,2010,Q2 2010,May 2010
</div>
</body>
</html>
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