aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2020-06-29 12:19:23 -0500
committerzsloan2020-06-29 12:19:23 -0500
commitcef130716782cf5c06453705bee7ab6aed1dcce0 (patch)
treef5fc562f09b96c90dd1ad7912345089575941102 /wqflask/base
parentaa06c83ecd4d36878ac0aadd75ab2bd461f44344 (diff)
downloadgenenetwork2-cef130716782cf5c06453705bee7ab6aed1dcce0.tar.gz
Change that hopefully fixes some encoding stuff
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 7fc016f3..5903fb08 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -6,6 +6,7 @@ import resource
import codecs
import requests
import random
+import urllib
from base import webqtlConfig
from base.webqtlCaseData import webqtlCaseData
@@ -144,6 +145,7 @@ class GeneralTrait(object):
formatted = self.post_publication_description
else:
formatted = "Not available"
+
return formatted
@property
@@ -474,9 +476,9 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
trait.haveinfo = True
for i, field in enumerate(dataset.display_fields):
- holder = trait_info[i]
- #if isinstance(trait_info[i], basestring):
- # holder = holder.encode('latin1')
+ holder = trait_info[i]
+ if isinstance(trait_info[i], basestring):
+ holder = holder.encode('latin1')
setattr(trait, field, holder)
if dataset.type == 'Publish':