Skip to content

Commit 1959190

Browse files
authored
Merge pull request #490 from hubmapconsortium/yuanzhou/fix
Yuanzhou/fix
2 parents 6169992 + 2388d5c commit 1959190

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.22
1+
2.1.23

src/app.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -893,17 +893,16 @@ def get_entities_by_type(entity_type):
893893
# Get back a list of public collections dicts
894894
entities_list = app_neo4j_queries.get_public_collections(neo4j_driver_instance)
895895
else:
896-
# Get user token from Authorization header. Since this endpoint is not exposed through the
897-
# AWS Gateway,
896+
# Get user token from Authorization header. Since this endpoint is not exposed through the AWS Gateway
898897
token = get_user_token(request)
899-
898+
900899
# Get back a list of entity dicts for the given entity type
901900
entities_list = app_neo4j_queries.get_entities_by_type(neo4j_driver_instance, normalized_entity_type)
902901

903-
complete_entities_list = schema_manager.get_complete_entities_list(token, entities_list, generated_properties_to_skip)
902+
complete_entities_list = schema_manager.get_complete_entities_list(token, entities_list, generated_properties_to_skip)
904903

905-
# Final result after normalization
906-
final_result = schema_manager.normalize_entities_list_for_response(complete_entities_list)
904+
# Final result after normalization
905+
final_result = schema_manager.normalize_entities_list_for_response(complete_entities_list)
907906

908907
# Response with the final result
909908
return jsonify(final_result)

0 commit comments

Comments
 (0)