From e420278a1340b57a29f6a660b365b1669a623ac4 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 16 Oct 2009 02:52:06 +0000 Subject: [PATCH] 3291: "Probably alive" misses persons definitely alive svn: r13374 --- src/Utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Utils.py b/src/Utils.py index 56b03f2a5..61896e91d 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -674,9 +674,7 @@ def not_too_old(date, current_year=None): time_struct = time.localtime(time.time()) current_year = time_struct[0] year = date.get_year() - if year > current_year: - return False - return (year != 0 and current_year - year < _MAX_AGE_PROB_ALIVE) + return (year != 0 and abs(current_year - year) < _MAX_AGE_PROB_ALIVE) def too_old(date, current_year=None): if current_year: @@ -685,9 +683,7 @@ def too_old(date, current_year=None): time_struct = time.localtime(time.time()) the_current_year = time_struct[0] year = date.get_year() - if year > the_current_year: - return True - return (year != 0 and the_current_year - year > _MAX_AGE_PROB_ALIVE) + return (year != 0 and abs(the_current_year - year) > _MAX_AGE_PROB_ALIVE) #------------------------------------------------------------------------- #