about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzsloan2019-12-11 10:59:02 -0600
committerzsloan2019-12-11 10:59:02 -0600
commita9bbef5ef25deb39bae030a147fc15e31fa7ac3a (patch)
tree9e125e21a4e6eb1b0b53f1c097d61fc5e1629aa0
parent03cc3b4c9d0fb58c9b26fa1df1fac485b73b6e8c (diff)
downloadgenenetwork2-a9bbef5ef25deb39bae030a147fc15e31fa7ac3a.tar.gz
Fixed issue where searching for X (or any letter) chromosome with position search didn't work
-rw-r--r--wqflask/wqflask/do_search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index 12338401..42aca2cb 100644
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -797,7 +797,7 @@ class PositionSearch(DoSearch):
         self.chr = str(chr).lower()
         self.get_chr()
 
-        where_clause = """ %s.Chr = %s and
+        where_clause = """ %s.Chr = '%s' and
                                 %s.Mb > %s and
                                 %s.Mb < %s """ % self.mescape(self.dataset.type,
                                                               self.chr,