From 05ad2319f96bd9fa3852079bd6f605e1b13d6dd1 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 27 Oct 2020 23:28:44 +0300 Subject: 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. --- wqflask/wqflask/gsearch.py | 4 ++-- 1 file 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`, -- cgit v1.2.3