3834: Death date on individuals an surnames pages in Narrative Web Report
svn: r15099
This commit is contained in:
parent
9e505f3419
commit
42f948b606
@ -1926,7 +1926,7 @@ class IndividualListPage(BasePage):
|
|||||||
|
|
||||||
death_date = _find_death_date(db, person)
|
death_date = _find_death_date(db, person)
|
||||||
if death_date is not None:
|
if death_date is not None:
|
||||||
tcell += death_date
|
tcell += _dd.display(death_date)
|
||||||
else:
|
else:
|
||||||
tcell += " "
|
tcell += " "
|
||||||
|
|
||||||
@ -2087,7 +2087,7 @@ class SurnamePage(BasePage):
|
|||||||
|
|
||||||
death_date = _find_death_date(db, person)
|
death_date = _find_death_date(db, person)
|
||||||
if death_date is not None:
|
if death_date is not None:
|
||||||
tcell += death_date
|
tcell += _dd.display(death_date)
|
||||||
else:
|
else:
|
||||||
tcell += " "
|
tcell += " "
|
||||||
|
|
||||||
@ -6234,6 +6234,7 @@ def _find_death_date(db, person):
|
|||||||
death_ref = person.get_death_ref()
|
death_ref = person.get_death_ref()
|
||||||
if death_ref:
|
if death_ref:
|
||||||
death = db.get_event_from_handle(death_ref.ref)
|
death = db.get_event_from_handle(death_ref.ref)
|
||||||
|
if death:
|
||||||
return death.get_date_object()
|
return death.get_date_object()
|
||||||
else:
|
else:
|
||||||
event_list = person.get_primary_event_ref_list()
|
event_list = person.get_primary_event_ref_list()
|
||||||
|
Loading…
Reference in New Issue
Block a user