* src/Utils.py: use intermediate variable

svn: r4980
This commit is contained in:
Don Allingham
2005-07-30 03:29:34 +00:00
parent b26b982274
commit d45b36537e
3 changed files with 9 additions and 12 deletions

View File

@@ -469,7 +469,7 @@ def probably_alive(person,db,current_year=None):
death = db.get_event_from_handle(person.death_handle)
if death.get_date_object().get_start_date() != Date.EMPTY:
death_year = death.get_date_object().get_year()
if death.get_date_object().get_year() < current_year:
if death_year < current_year:
return False
# Look for Cause Of Death, Burial or Cremation events.