Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
28b388c4
Commit
28b388c4
authored
Apr 07, 2017
by
LE GAC Renaud
Browse files
Update Metric2D to remove useless string conversion.
parent
8d155af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/plugin_event/report_tools.py
modules/plugin_event/report_tools.py
+2
-2
No files found.
modules/plugin_event/report_tools.py
View file @
28b388c4
...
...
@@ -609,7 +609,7 @@ class Metric2D(BaseReport):
self
.
store
=
store
=
Store
(
data
=
[],
fields
=
[],
sorters
=
[])
for
col
in
df
.
columns
:
di
=
{
"name"
:
str
(
col
)
}
di
=
{
"name"
:
col
}
di
[
"type"
]
=
(
"string"
if
col
==
field_y
else
"number"
)
store
.
fields
.
append
(
di
)
...
...
@@ -637,7 +637,7 @@ class Metric2D(BaseReport):
if
col
==
field_y
:
continue
name
=
str
(
col
)
name
=
col
grid
.
columns
.
append
({
"text"
:
name
,
"dataIndex"
:
name
,
"align"
:
"right"
,
...
...
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