From cb8fc335ece8e7ceabab63dc73cb4464d0cef3d7 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 3 Jan 2022 19:13:51 +0000 Subject: Fixed wrong logic for checking for null or empty string trait descriptions in search results --- wqflask/wqflask/search_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "" -- cgit v1.2.3