Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions server/lib/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def triples(nodes, out=True, max_pages=1):
return result


def descendent_places(nodes, descendent_type, max_pages=1):
def descendent_places(nodes, descendent_type, max_pages=None):
Comment thread
nick-nlb marked this conversation as resolved.
# When the only node being requested is also the descendent_type, fetch all nodes of that type.
if nodes and len(nodes) == 1 and nodes[0] == descendent_type:
return property_values(nodes, "typeOf", out=False, max_pages=max_pages)
Expand All @@ -523,12 +523,13 @@ def descendent_places(nodes, descendent_type, max_pages=1):
max_pages=max_pages)


def raw_descendent_places(nodes, descendent_type):
def raw_descendent_places(nodes, descendent_type, max_pages=None):
return raw_property_values(
nodes,
'containedInPlace+',
out=False,
constraints='{{typeOf:{}}}'.format(descendent_type))
constraints='{{typeOf:{}}}'.format(descendent_type),
max_pages=max_pages)


def resolve_id(nodes, in_prop, out_prop):
Expand Down
Loading