9450: LivingProxyDB leaves data in when back references followed
This commit is contained in:
parent
93803fb519
commit
ef0b2b8aea
@ -336,10 +336,13 @@ class LivingProxyDb(ProxyDbBase):
|
|||||||
"""
|
"""
|
||||||
handle_itr = self.db.find_backlink_handles(handle, include_classes)
|
handle_itr = self.db.find_backlink_handles(handle, include_classes)
|
||||||
for (class_name, handle) in handle_itr:
|
for (class_name, handle) in handle_itr:
|
||||||
if class_name == 'Person':
|
if class_name == "Person" and self.mode != self.MODE_INCLUDE_ALL:
|
||||||
if not self.get_person_from_handle(handle):
|
## Don't get backlinks to living people at all
|
||||||
continue
|
person = self.db.get_person_from_handle(handle)
|
||||||
yield (class_name, handle)
|
if person and not self.__is_living(person):
|
||||||
|
yield (class_name, handle)
|
||||||
|
else:
|
||||||
|
yield (class_name, handle)
|
||||||
return
|
return
|
||||||
|
|
||||||
def __is_living(self, person):
|
def __is_living(self, person):
|
||||||
|
Loading…
Reference in New Issue
Block a user