Skip to content

Commit

Permalink
Merge pull request #627 from hubmapconsortium/Derek-Furst/fix-whitesp…
Browse files Browse the repository at this point in the history
…ace-error

Derek furst/fix whitespace error
  • Loading branch information
yuanzhou authored Mar 1, 2024
2 parents 014fd57 + 875d449 commit 854f340
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 854f340

Please sign in to comment.