From bb93bb59541ecfc0d97fd7b66492a6778aca3aa2 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 1 Jul 2015 22:30:31 +0000 Subject: Needed to add a couple parenthesis for transLRS searches --- wqflask/wqflask/do_search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py index 3d1ad583..9e88215a 100755 --- a/wqflask/wqflask/do_search.py +++ b/wqflask/wqflask/do_search.py @@ -667,8 +667,8 @@ class CisTransLrsSearch(DoSearch): where_clause = sub_clause + """ %sXRef.Locus = Geno.name and Geno.SpeciesId = %s and - (ABS(%s.Mb-Geno.Mb) %s %s and %s.Chr = Geno.Chr) or - (%s.Chr != Geno.Chr)""" % ( + ((ABS(%s.Mb-Geno.Mb) %s %s and %s.Chr = Geno.Chr) or + (%s.Chr != Geno.Chr))""" % ( escape(self.dataset.type), escape(str(self.species_id)), escape(self.dataset.type), -- cgit v1.2.3