diff --git a/node_normalizer/server.py b/node_normalizer/server.py index b90ba54..9baa809 100644 --- a/node_normalizer/server.py +++ b/node_normalizer/server.py @@ -234,7 +234,7 @@ async def get_semantic_types_handler() -> SemanticTypes: # get the distinct list of Biolink model types in the correct format # https://github.com/TranslatorSRI/NodeNormalization/issues/29 - ret_val = SemanticTypes(semantic_types={"types": types}) + ret_val = SemanticTypes(semantic_types={"types": list(set(types))}) # return the data to the caller return ret_val