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
c3e8dcd3
Commit
c3e8dcd3
authored
May 18, 2022
by
Markus Scheidgen
Browse files
Fixed optimade issue with lists in section results.
#847
parent
8be5d1f8
Pipeline
#132392
passed with stages
in 87 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/optimade/elasticsearch.py
View file @
c3e8dcd3
...
...
@@ -256,6 +256,11 @@ class StructureCollection(EntryCollection):
get_results
()
section
=
archive
for
segment
in
path
:
if
isinstance
(
section
,
list
):
if
len
(
section
)
==
0
:
value
=
None
break
section
=
section
[
0
]
value
=
getattr
(
section
,
segment
)
section
=
value
...
...
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