diff options
author | zsloan | 2020-02-06 16:08:34 -0600 |
---|---|---|
committer | zsloan | 2020-02-06 16:08:34 -0600 |
commit | 9bb737b75813399b12acf5318107bae9bb452b53 (patch) | |
tree | e48839180d107f64e5715e6a1ded9c5bd1eb1deb /wqflask/base/trait.py | |
parent | 7464ce21b5d2577d35e4df1814e57b874ee95590 (diff) | |
download | genenetwork2-9bb737b75813399b12acf5318107bae9bb452b53.tar.gz |
Fixed encoding issue
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r-- | wqflask/base/trait.py | 4 |
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: |