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
nomad-lab
nomad-FAIR
Commits
0aaef96d
Commit
0aaef96d
authored
Sep 07, 2020
by
Markus Scheidgen
Browse files
Use specifically set statistic size over len of statistic values.
parent
e03ed9a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/metainfo/search_extension.py
View file @
0aaef96d
...
...
@@ -190,5 +190,6 @@ class Search(Elastic):
def
statistic_values
(
self
,
values
):
self
.
_statistic_values
=
values
if
self
.
_statistic_values
is
not
None
:
self
.
statistic_size
=
len
(
self
.
_statistic_values
)
if
self
.
statistic_fixed_size
is
None
:
self
.
statistic_size
=
len
(
self
.
_statistic_values
)
self
.
statistic_fixed_size
=
len
(
self
.
_statistic_values
)
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