Skip to content
Snippets Groups Projects
Commit 1a558747 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed optimade issue with lists in section results. #847

parent b973c72c
No related branches found
No related tags found
No related merge requests found
Pipeline #133874 canceled
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment