7340: Performance improvement in ancestor filter
This commit is contained in:
parent
46eee8a252
commit
c0c318e2e5
@ -71,6 +71,8 @@ class IsAncestorOf(Rule):
|
||||
def init_ancestor_list(self, db, person,first):
|
||||
if not person:
|
||||
return
|
||||
if person.handle in self.map:
|
||||
return
|
||||
if not first:
|
||||
self.map.add(person.handle)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user