Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-statistics
Commits
33ac692b
Commit
33ac692b
authored
Nov 09, 2020
by
Jerome Touvier
Browse files
fix none data
parent
6bed9979
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/output.py
View file @
33ac692b
...
...
@@ -136,7 +136,8 @@ def format_results(params, data):
data
=
[[
"all"
,
data
[
0
][
0
],
data
[
0
][
1
]]]
if
params
[
"format"
]
!=
"csv"
:
for
row
in
data
:
row
[:]
=
[
row
[
0
],
"{:_}"
.
format
(
row
[
1
]),
"{:_}"
.
format
(
row
[
2
])]
if
row
[
1
]
and
row
[
2
]:
row
[:]
=
[
row
[
0
],
"{:_}"
.
format
(
row
[
1
]),
"{:_}"
.
format
(
row
[
2
])]
elif
params
[
"request"
]
==
"send"
:
if
params
[
"format"
]
!=
"csv"
:
...
...
Write
Preview
Supports
Markdown
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