Skip to content

Commit

Permalink
converted hubmapid to uuid before running schema_manager.entity_insta…
Browse files Browse the repository at this point in the history
…nceof()
  • Loading branch information
DerekFurstPitt committed Feb 27, 2024
1 parent 40da2f4 commit fccd32f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ def get_ancestor_organs(id):
@app.route('/entities/<id>/instanceof/<type>', methods=['GET'])
def get_entities_instanceof(id, type):
try:
instanceof: bool = schema_manager.entity_instanceof(id, type)
uuid = schema_manager.get_hubmap_ids(id.strip())['uuid']
instanceof: bool = schema_manager.entity_instanceof(uuid, type)
except:
bad_request_error("Unable to process request")
return make_response(jsonify({'instanceof': instanceof}), 200)
Expand Down

0 comments on commit fccd32f

Please sign in to comment.