Skip to content

Commit

Permalink
changed id to id.strip() in get_hubmap_ids and entity_instanceof
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekFurstPitt committed Feb 27, 2024
1 parent 40da2f4 commit 875d449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,7 @@ def query_target_entity(id, user_token):

try:
# Get cached ids if exist otherwise retrieve from UUID-API
hubmap_ids = schema_manager.get_hubmap_ids(id)
hubmap_ids = schema_manager.get_hubmap_ids(id.strip())

# Get the target uuid if all good
uuid = hubmap_ids['hm_uuid']
Expand Down
2 changes: 1 addition & 1 deletion src/schema/schema_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def entity_instanceof(entity_uuid: str, entity_class: str) -> bool:
:return: True or False
"""
entity_type: str =\
schema_neo4j_queries.get_entity_type(get_neo4j_driver_instance(), entity_uuid)
schema_neo4j_queries.get_entity_type(get_neo4j_driver_instance(), entity_uuid.strip())
return entity_type_instanceof(entity_type, entity_class)


Expand Down

0 comments on commit 875d449

Please sign in to comment.