aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/do_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/do_search.py')
-rwxr-xr-xwqflask/wqflask/do_search.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index 31dc11b5..921a4a47 100755
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -382,11 +382,20 @@ class RifSearch(MrnaAssaySearch):
DoSearch.search_types['RIF'] = "RifSearch"
- def run(self):
+ def get_where_clause(self):
where_clause = """( %s.symbol = GeneRIF_BASIC.symbol and
MATCH (GeneRIF_BASIC.comment)
AGAINST ('+%s' IN BOOLEAN MODE)) """ % (self.dataset.type, self.search_term[0])
+ return where_clause
+
+ def run(self):
+ #where_clause = """( %s.symbol = GeneRIF_BASIC.symbol and
+ # MATCH (GeneRIF_BASIC.comment)
+ # AGAINST ('+%s' IN BOOLEAN MODE)) """ % (self.dataset.type, self.search_term[0])
+
+ where_clause = self.get_where_clause()
+
from_clause = ", GeneRIF_BASIC "
query = self.compile_final_query(from_clause, where_clause)