diff options
author | zsloan | 2019-07-18 17:58:33 -0500 |
---|---|---|
committer | zsloan | 2019-07-18 17:58:33 -0500 |
commit | 4ef78a90b4b232300a7806afdc5503fcf6fc7c4b (patch) | |
tree | 99c9bab4be841fd2386f1c5515abef9d3804216d /wqflask/base | |
parent | 6dab4e5935b87ad818129e3b4bfab4cfa465addf (diff) | |
download | genenetwork2-4ef78a90b4b232300a7806afdc5503fcf6fc7c4b.tar.gz |
Made change that should fix encoding issue, fingers crossed
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/trait.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 6fecf725..0527449b 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -396,8 +396,10 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False): #XZ: assign SQL query result to trait attributes. for i, field in enumerate(dataset.display_fields): holder = trait_info[i] - if isinstance(trait_info[i], basestring): - holder = unicode(trait_info[i], "utf-8", "ignore") + # if isinstance(trait_info[i], basestring): + # logger.debug("HOLDER:", holder) + # logger.debug("HOLDER2:", holder.decode(encoding='latin1')) + # holder = unicode(trait_info[i], "utf-8", "ignore") setattr(trait, field, holder) if dataset.type == 'Publish': |