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
4 changes: 2 additions & 2 deletions src/schema/schema_neo4j_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def get_dataset_direct_ancestors(neo4j_driver, uuid, property_key = None):
Returns
-------
list : List containing the source metadata (string representation of a Python dict) of each Donor of an
organ Sample associated with the Dataset.
organ Sample associated with the Dataset. Could also be an empty list [] if no match.
"""
def get_dataset_donor_organs_info(neo4j_driver, dataset_uuid):

Expand All @@ -637,7 +637,7 @@ def get_dataset_donor_organs_info(neo4j_driver, dataset_uuid):
record = session.read_transaction(execute_readonly_tx
, ds_donors_organs_query)

return record['donorOrganSet'] if record and record['donorOrganSet'] else None
return record['donorOrganSet'] if record and record['donorOrganSet'] else []


"""
Expand Down