9450: LivingProxyDB leaves data in when back references followed

This commit is contained in:
Doug Blank 2016-05-27 09:10:50 -07:00 committed by Paul Franklin
parent 93803fb519
commit ef0b2b8aea

View File

@ -336,9 +336,12 @@ 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)
if person and not self.__is_living(person):
yield (class_name, handle)
else:
yield (class_name, handle) yield (class_name, handle)
return return