diff options
author | BonfaceKilz | 2020-09-17 21:16:28 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-09-17 21:25:23 +0300 |
commit | bfb5fab5ac57934f7a6bd54938188fa0d2669ad7 (patch) | |
tree | 86ff8307621d189e3b6858ea6879355d88b10e89 /wqflask/base | |
parent | db73be83f99d1d01879db5666aaf78d7ff372bdd (diff) | |
download | genenetwork2-bfb5fab5ac57934f7a6bd54938188fa0d2669ad7.tar.gz |
Convert "target_string" to a str type
* wqflask/base/trait.py (retrieve_trait_info): Convert "target_string"
to a str, otherwise an exception will be thrown if it's None.
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/trait.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 548ccc4c..c37a8325 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -538,8 +538,8 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False): description_display = trait.symbol if (len(description_display) > 1 and description_display != 'N/A' and - len(target_string) > 1 and target_string != 'None'): - description_display = description_display + '; ' + target_string.strip() + len(str(target_string)) > 1 and target_string != 'None'): + description_display = description_display + '; ' + str(target_string).strip() # Save it for the jinja2 template trait.description_display = description_display |