A simple, conservative probably_alive

svn: r13951
This commit is contained in:
Doug Blank 2010-01-01 15:11:00 +00:00
parent 7aef74eaca
commit eba1c9d264

View File

@ -96,8 +96,7 @@ def export_all(database, filename, option_box=None, callback=None):
dji.add_person(data) dji.add_person(data)
elif step == 1: elif step == 1:
djperson = dji.add_person_detail(data) djperson = dji.add_person_detail(data)
person = database.get_person_from_handle(person_handle) djperson.probably_alive = not bool(djperson.death)
djperson.probably_alive = probably_alive(person, database)
djperson.save() djperson.save()
count += 1 count += 1
callback(100 * count/total) callback(100 * count/total)