Same date of birth and death gives an error. (#1011)

Fixes #011553
This commit is contained in:
Serge Noiraud 2020-04-04 09:52:50 +02:00 committed by GitHub
parent 28dc2e5158
commit 23d2c8e694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1788,7 +1788,7 @@ class OldAgeButNoDeath(PersonRule):
class BirthEqualsDeath(PersonRule):
""" test if a person's birth date is the same as their death date """
ID = 33
SEVERITY = Rule.ERROR
SEVERITY = Rule.WARNING
def broken(self):
""" return boolean indicating whether this rule is violated """
birth_date = get_birth_date(self.db, self.obj)