bug 8799 : verification tool : Exception raised when used with the "Estimate missing or inexact dates"

This commit is contained in:
SNoiraud 2015-09-29 09:23:50 +02:00
parent 651e03c697
commit 2df26a9076

View File

@ -170,6 +170,7 @@ def get_birth_date(db, person, estimate=False):
ret = get_date_from_event_handle(db,birth_ref.ref,estimate)
if estimate and (ret == 0):
ret = get_bapt_date(db,person,estimate)
ret = 0 if ret is None else ret
return ret
def get_death_date(db, person, estimate=False):
@ -182,6 +183,7 @@ def get_death_date(db, person, estimate=False):
ret = get_date_from_event_handle(db,death_ref.ref,estimate)
if estimate and (ret == 0):
ret = get_bury_date(db,person,estimate)
ret = 0 if ret is None else ret
return ret
def get_age_at_death(db, person, estimate):