From cef130716782cf5c06453705bee7ab6aed1dcce0 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 29 Jun 2020 12:19:23 -0500 Subject: Change that hopefully fixes some encoding stuff --- wqflask/base/trait.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'wqflask') 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': -- cgit v1.2.3