aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-07-19 10:49:29 -0500
committerzsloan2019-07-19 10:49:29 -0500
commit60ae84f8bf2f68846ddeb41bba073b11747bc5e7 (patch)
treed89e52218a534aa02b0cc1dd37a87e9fbeec91be /wqflask
parent4ef78a90b4b232300a7806afdc5503fcf6fc7c4b (diff)
downloadgenenetwork2-60ae84f8bf2f68846ddeb41bba073b11747bc5e7.tar.gz
Fixed issue where chr in lower case didn't work for LRS term search
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/do_search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index c7dbc972..c4c303fe 100644
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -448,8 +448,8 @@ class LrsSearch(DoSearch):
def get_from_clause(self):
#If the user typed, for example "Chr4", the "Chr" substring needs to be removed so that all search elements can be converted to floats
- if len(self.search_term) > 2 and "Chr" in self.search_term[2]:
- chr_num = self.search_term[2].replace("Chr", "")
+ if len(self.search_term) > 2 and "chr" in self.search_term[2].lower():
+ chr_num = self.search_term[2].lower().replace("chr", "")
self.search_term[2] = chr_num
self.search_term = [float(value) for value in self.search_term]