From a2703f838933740032e0e2469defdf9bd9027b06 Mon Sep 17 00:00:00 2001 From: kmorton Date: Fri, 19 Apr 2024 16:42:12 -0400 Subject: [PATCH] Bug fix for missing attribute props --- ranker/server.py | 2 +- ranker/shared/ranker_obj.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ranker/server.py b/ranker/server.py index ecbf977..8094921 100644 --- a/ranker/server.py +++ b/ranker/server.py @@ -16,7 +16,7 @@ from ranker.util.omnicorp_get_node_pmids import get_node_pmids # set the app version -APP_VERSION = '3.3.2' +APP_VERSION = '3.3.3' APP = FastAPI(title='ARAGORN Ranker', version=APP_VERSION) diff --git a/ranker/shared/ranker_obj.py b/ranker/shared/ranker_obj.py index 85fcc8f..ac5b5a5 100644 --- a/ranker/shared/ranker_obj.py +++ b/ranker/shared/ranker_obj.py @@ -489,8 +489,8 @@ def get_edge_values(self, edge_id): # Look through attributes and for attribute in edge.get("attributes", []): - orig_attr_name = attribute.get("original_attribute_name", None) - attr_type_id = attribute.get("attribute_type_id", None) + orig_attr_name = attribute.get("original_attribute_name", '') + attr_type_id = attribute.get("attribute_type_id", '') # We will look at both the original_attribute_name and the # attribute_type_id. The attribute_type_id is the real method