From 3325440faef1161da90d51444543d8d847fb9cdd Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 17 Nov 2021 18:27:56 +0000 Subject: Fix issue where gene global search throws an error due to some traits not having a gene symbol (not sure why they don't in the DB, but the code defaults it to N/A now) --- wqflask/wqflask/gsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py index bf44408e..31f3305c 100644 --- a/wqflask/wqflask/gsearch.py +++ b/wqflask/wqflask/gsearch.py @@ -89,7 +89,7 @@ class GSearch: if line[7]: this_trait['description'] = line[7].decode( 'utf-8', 'replace') - this_trait['location_repr'] = 'N/A' + this_trait['location_repr'] = "N/A" if (line[8] != "NULL" and line[8] != "") and (line[9] != 0): this_trait['location_repr'] = 'Chr%s: %.6f' % ( line[8], float(line[9])) -- cgit v1.2.3