diff options
author | zsloan | 2019-07-19 10:49:29 -0500 |
---|---|---|
committer | zsloan | 2019-07-19 10:49:29 -0500 |
commit | 60ae84f8bf2f68846ddeb41bba073b11747bc5e7 (patch) | |
tree | d89e52218a534aa02b0cc1dd37a87e9fbeec91be /wqflask | |
parent | 4ef78a90b4b232300a7806afdc5503fcf6fc7c4b (diff) | |
download | genenetwork2-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.py | 4 |
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] |