aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-10-27 23:28:44 +0300
committerBonfaceKilz2020-10-27 23:28:44 +0300
commit05ad2319f96bd9fa3852079bd6f605e1b13d6dd1 (patch)
tree822e0d6de96818bafd9b64dff130d5d25f1bd575
parentcc75b6ad2220d9875ce7b21433eb3fb175b5216f (diff)
downloadgenenetwork2-05ad2319f96bd9fa3852079bd6f605e1b13d6dd1.tar.gz
Cast post and pre-publication descriptions into binary
* wqflask/wqflask/gsearch.py (GSearch): There's an exception thrown when the decode method is called on that description string. If the casting is absent, and the decode statements are removed, the some characters get broken.
-rw-r--r--wqflask/wqflask/gsearch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py
index 6d797a29..5b26e372 100644
--- a/wqflask/wqflask/gsearch.py
+++ b/wqflask/wqflask/gsearch.py
@@ -135,8 +135,8 @@ class GSearch(object):
PublishFreeze.`Name`,
PublishFreeze.`FullName`,
PublishXRef.`Id`,
- Phenotype.`Pre_publication_description`,
- Phenotype.`Post_publication_description`,
+ CAST(Phenotype.`Pre_publication_description` AS BINARY),
+ CAST(Phenotype.`Post_publication_description` AS BINARY),
Publication.`Authors`,
Publication.`Year`,
Publication.`PubMed_ID`,