Skip to content

Commit

Permalink
Merge pull request #490 from hubmapconsortium/yuanzhou/fix
Browse files Browse the repository at this point in the history
Yuanzhou/fix
  • Loading branch information
yuanzhou authored Jun 13, 2023
2 parents 6169992 + 2388d5c commit 1959190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.22
2.1.23
11 changes: 5 additions & 6 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,17 +893,16 @@ def get_entities_by_type(entity_type):
# Get back a list of public collections dicts
entities_list = app_neo4j_queries.get_public_collections(neo4j_driver_instance)
else:
# Get user token from Authorization header. Since this endpoint is not exposed through the
# AWS Gateway,
# Get user token from Authorization header. Since this endpoint is not exposed through the AWS Gateway
token = get_user_token(request)

# Get back a list of entity dicts for the given entity type
entities_list = app_neo4j_queries.get_entities_by_type(neo4j_driver_instance, normalized_entity_type)

complete_entities_list = schema_manager.get_complete_entities_list(token, entities_list, generated_properties_to_skip)
complete_entities_list = schema_manager.get_complete_entities_list(token, entities_list, generated_properties_to_skip)

# Final result after normalization
final_result = schema_manager.normalize_entities_list_for_response(complete_entities_list)
# Final result after normalization
final_result = schema_manager.normalize_entities_list_for_response(complete_entities_list)

# Response with the final result
return jsonify(final_result)
Expand Down

0 comments on commit 1959190

Please sign in to comment.