Commit c3e8dcd3 authored by Markus Scheidgen's avatar 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
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment