From 5f000ec3f1b41008c9faa08dc9f24be31aa51886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 26 May 2012 09:02:08 +0000 Subject: [PATCH] 5705: Wrong detection of error (burial before death) when checking data svn: r19657 --- src/plugins/tool/Verify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/tool/Verify.py b/src/plugins/tool/Verify.py index 2cad52723..12883d4fc 100644 --- a/src/plugins/tool/Verify.py +++ b/src/plugins/tool/Verify.py @@ -136,6 +136,9 @@ def get_date_from_event_type(db,person,event_type,estimate=False): for event_ref in person.get_event_ref_list(): event = find_event(db,event_ref.ref) if event: + if event_ref.get_role() != gen.lib.EventRoleType.PRIMARY and \ + event.get_type() == gen.lib.EventType.BURIAL: + continue if event.get_type() == event_type: date_obj = event.get_date_object() if not estimate and \