Add three missing simplifications
This commit is contained in:
parent
72553fdfcf
commit
54a4efcd61
@ -171,7 +171,6 @@ def get_timeperiod(db, person):
|
||||
|
||||
# no birth and death, look for another event date we can use
|
||||
for event_ref in person.get_primary_event_ref_list():
|
||||
if event_ref:
|
||||
event = db.get_event_from_handle(event_ref.ref)
|
||||
if event:
|
||||
event_date = event.get_date_object().to_calendar("gregorian")
|
||||
@ -225,7 +224,6 @@ def get_marriage_or_fallback(db, family, format=None):
|
||||
|
||||
# now search the event list for fallbacks
|
||||
for event_ref in get_primary_event_ref_list(db, family):
|
||||
if event_ref:
|
||||
event = db.get_event_from_handle(event_ref.ref)
|
||||
if (
|
||||
event
|
||||
@ -251,7 +249,6 @@ def get_divorce_or_fallback(db, family, format=None):
|
||||
|
||||
# now search the event list for fallbacks
|
||||
for event_ref in get_primary_event_ref_list(db, family):
|
||||
if event_ref:
|
||||
event = db.get_event_from_handle(event_ref.ref)
|
||||
if (
|
||||
event
|
||||
|
Loading…
Reference in New Issue
Block a user