From 5aa4e80366c940f653b59a7c0d686bc56d6aae8d Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 17 Oct 2024 20:24:01 +0000 Subject: Fix wildcard search for Genotype searches --- gn2/wqflask/do_search.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn2') diff --git a/gn2/wqflask/do_search.py b/gn2/wqflask/do_search.py index b64c6fce..d50ef39d 100644 --- a/gn2/wqflask/do_search.py +++ b/gn2/wqflask/do_search.py @@ -359,6 +359,7 @@ class GenotypeSearch(DoSearch): if "'" not in self.search_term[0]: self.search_term = "%" + self.search_term[0] + "%" + self.search_term = self.search_term.replace("*", "%") for field in self.search_fields: where_clause.append('''%s LIKE "%s"''' % ("%s.%s" % self.mescape(self.dataset.type, -- cgit v1.2.3