Skip to content

Commit f06137f

Browse files
renamed collection_dict as publication_dict. updated returns section in the function documentation to reflect its returning a publication rather than a collection
1 parent 654fa37 commit f06137f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/schema/schema_triggers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,19 +853,19 @@ def get_publication_associated_collection(property_key, normalized_type, request
853853
Returns
854854
-------
855855
str: The target property key
856-
dict: A dictionary representation of the associated collection with all the normalized information
856+
dict: A dictionary representation of the associated publication with all the normalized information
857857
"""
858858
def get_collection_associated_publication(property_key, normalized_type, request_args, user_token, existing_data_dict, new_data_dict):
859859
if 'uuid' not in existing_data_dict:
860860
raise KeyError("Missing 'uuid' key in 'existing_data_dict' during calling 'get_collection_associated_publication()' trigger method.")
861861

862862
logger.info(f"Executing 'get_collection_associated_publication()' trigger method on uuid: {existing_data_dict['uuid']}")
863863

864-
collection_dict = schema_neo4j_queries.get_collection_associated_publication(schema_manager.get_neo4j_driver_instance(), existing_data_dict['uuid'])
864+
publication_dict = schema_neo4j_queries.get_collection_associated_publication(schema_manager.get_neo4j_driver_instance(), existing_data_dict['uuid'])
865865

866866
# Get rid of the entity node properties that are not defined in the yaml schema
867867
# as well as the ones defined as `exposed: false` in the yaml schema
868-
return property_key, collection_dict
868+
return property_key, publication_dict
869869

870870

871871

0 commit comments

Comments
 (0)