aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorzsloan2020-02-06 16:08:34 -0600
committerzsloan2020-02-06 16:08:34 -0600
commit9bb737b75813399b12acf5318107bae9bb452b53 (patch)
treee48839180d107f64e5715e6a1ded9c5bd1eb1deb /wqflask/base/trait.py
parent7464ce21b5d2577d35e4df1814e57b874ee95590 (diff)
downloadgenenetwork2-9bb737b75813399b12acf5318107bae9bb452b53.tar.gz
Fixed encoding issue
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 8dbd1964..7ec764d8 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -463,6 +463,10 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
else:
trait.description_display = ""
+ trait.abbreviation = unicode(str(trait.abbreviation).strip(codecs.BOM_UTF8), 'utf-8', errors="replace")
+ trait.description_display = unicode(str(trait.description_display).strip(codecs.BOM_UTF8), 'utf-8', errors="replace")
+ trait.authors = unicode(str(trait.authors).strip(codecs.BOM_UTF8), 'utf-8', errors="replace")
+
if not trait.year.isdigit():
trait.pubmed_text = "N/A"
else: