aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-01-03 19:13:51 +0000
committerzsloan2022-01-03 13:17:36 -0600
commitcb8fc335ece8e7ceabab63dc73cb4464d0cef3d7 (patch)
treec45a402070da2b672fe6ea144b75161794a4e010 /wqflask
parent64f421a2522ad4fbb295b2f962957ac0c8973e22 (diff)
downloadgenenetwork2-cb8fc335ece8e7ceabab63dc73cb4464d0cef3d7.tar.gz
Fixed wrong logic for checking for null or empty string trait descriptions in search results
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/search_results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index af0ce44f..dd360971 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -121,7 +121,7 @@ class SearchResultPage:
trait_dict['hmac'] = hmac.data_hmac('{}:{}'.format(trait_dict['display_name'], trait_dict['dataset']))
trait_dict['symbol'] = "N/A" if result[3] is None else result[3].strip()
description_text = ""
- if result[4] is None or str(result[4]) != "":
+ if result[4] is not None and str(result[4]) != "":
description_text = result[4].decode('utf-8')
target_string = result[5].decode('utf-8') if result[5] else ""