aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-01-08 12:45:22 -0600
committerzsloan2020-01-08 12:45:22 -0600
commit33a550f893affb2abe8ea1fc393786b6aeb2304c (patch)
tree8d5f61ff836c43e2ef9b7a7580b873235b2d3b68 /wqflask
parent73b6f1241a04b76837dccb9e801ecdde635843a8 (diff)
downloadgenenetwork2-33a550f893affb2abe8ea1fc393786b6aeb2304c.tar.gz
Made change that I think should fix the unicode stuff once and for all
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/trait.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 7f60a809..63d07bf7 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -427,6 +427,8 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
# logger.debug("HOLDER:", holder)
# logger.debug("HOLDER2:", holder.decode(encoding='latin1'))
# holder = unicode(trait_info[i], "utf-8", "ignore")
+ if isinstance(trait_info[i], basestring):
+ holder = holder.encode('latin1')
setattr(trait, field, holder)
trait.display_name = trait.name