0001521: Filters work when tested, but not in side bar
svn: r9737
This commit is contained in:
@@ -30,13 +30,13 @@ class SearchFilter:
|
||||
self.text = text.upper()
|
||||
self.invert = invert
|
||||
|
||||
def match(self, handle):
|
||||
def match(self, handle, db):
|
||||
return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
|
||||
|
||||
class ExactSearchFilter(SearchFilter):
|
||||
def __init__(self, func, text, invert):
|
||||
SearchFilter.__init__(self, func, text, invert)
|
||||
|
||||
def match(self, handle):
|
||||
def match(self, handle, db):
|
||||
return self.invert ^ (self.func(handle).upper() == self.text.strip())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user