Fix bug in note filters
svn: r22862
This commit is contained in:
parent
189d1f0f59
commit
c94c8c0b84
@ -50,10 +50,8 @@ class HasNoteRegexBase(Rule):
|
|||||||
allow_regex = True
|
allow_regex = True
|
||||||
|
|
||||||
def apply(self, db, person):
|
def apply(self, db, person):
|
||||||
notelist = person.get_note_list()
|
for handle in person.get_note_list():
|
||||||
for notehandle in notelist:
|
note = db.get_note_from_handle(handle)
|
||||||
note = db.get_note_from_handle(notehandle)
|
if self.match_substring(0, note.get()):
|
||||||
n = note.get()
|
|
||||||
if self.match_substring(0, n) is not None:
|
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user