aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index d0c79119..24d0476d 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -147,7 +147,8 @@ class GeneralTrait(object):
formatted = self.post_publication_description
else:
formatted = "Not available"
-
+ if isinstance(formatted, bytes):
+ formatted = formatted.decode("utf-8")
return formatted
@property
@@ -495,6 +496,8 @@ 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(holder, bytes):
+ holder = holder.decode('utf-8')
setattr(trait, field, holder)
if dataset.type == 'Publish':