Skip to content

Commit

Permalink
fix: problem with reference to list values (DEV-356) (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
irinaschubert committed Jan 11, 2022
1 parent 198b9ca commit 3fce99a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions knora/dsplib/models/value.py
Expand Up @@ -835,9 +835,9 @@ def find_listnode(nodes: list[ListNode], name: str) -> Optional[str]:
if lists is None:
raise BaseError("Lists from ResourceInstanceFactory must be provided!")
node_iri = None
for list in lists:
if list.name == listname:
node_iri = find_listnode(list.children, nodename)
for list_item in lists:
if list_item.name == listname:
node_iri = find_listnode(list_item.children, nodename)
if node_iri is not None:
self._value = node_iri
else:
Expand Down

0 comments on commit 3fce99a

Please sign in to comment.