probably-alive incorrect if death without date
This commit is contained in:
parent
b24ebd5d77
commit
a685b96f70
@ -142,6 +142,8 @@ class ProbablyAlive:
|
|||||||
# person died more than MAX after current year
|
# person died more than MAX after current year
|
||||||
if death_date.is_valid():
|
if death_date.is_valid():
|
||||||
birth_date = death_date.copy_offset_ymd(year=-self.MAX_AGE_PROB_ALIVE)
|
birth_date = death_date.copy_offset_ymd(year=-self.MAX_AGE_PROB_ALIVE)
|
||||||
|
else:
|
||||||
|
birth_date = death_date
|
||||||
explain = _("death date")
|
explain = _("death date")
|
||||||
|
|
||||||
if not death_date and birth_date:
|
if not death_date and birth_date:
|
||||||
|
Loading…
Reference in New Issue
Block a user