diff options
Diffstat (limited to 'wqflask')
-rwxr-xr-x | 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 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), |