probably-alive incorrect if death without date

This commit is contained in:
SNoiraud 2021-07-23 20:20:10 +02:00 committed by Nick Hall
parent b24ebd5d77
commit a685b96f70

View File

@ -142,6 +142,8 @@ class ProbablyAlive:
# person died more than MAX after current year
if death_date.is_valid():
birth_date = death_date.copy_offset_ymd(year=-self.MAX_AGE_PROB_ALIVE)
else:
birth_date = death_date
explain = _("death date")
if not death_date and birth_date: