diff --git a/src/schema/schema_neo4j_queries.py b/src/schema/schema_neo4j_queries.py index b519dcfd..738ce81d 100644 --- a/src/schema/schema_neo4j_queries.py +++ b/src/schema/schema_neo4j_queries.py @@ -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): @@ -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 [] """