7340: Performance improvement in ancestor filter

This commit is contained in:
Nick Hall 2013-12-31 17:36:58 +00:00
parent 7c383cb70c
commit a2dfd9013e

View File

@ -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)