From 281bb1b9080a54088cb9daabd2cef826e5aa5e7a Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Sun, 3 Dec 2023 00:03:20 -0500 Subject: [PATCH] Uniquify semantic types returned from the database. --- node_normalizer/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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