From 9e7e513b13ff6b1184aed1a79470a57635cbcd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Thu, 16 Dec 2010 09:29:32 +0000 Subject: [PATCH] 3930: Verify data tool ignores role on burial event (see previous rev) svn: r16290 --- src/plugins/tool/Verify.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/tool/Verify.py b/src/plugins/tool/Verify.py index 69666321d..bf08a6d27 100644 --- a/src/plugins/tool/Verify.py +++ b/src/plugins/tool/Verify.py @@ -136,15 +136,15 @@ def get_date_from_event_type(db,person,event_type): return 0 def get_bapt_date(db,person): + return get_date_from_event_type(db,person,gen.lib.EventType.BAPTISM) + +def get_bury_date(db,person): # check role on burial event for event_ref in person.get_event_ref_list(): event = find_event(db, event_ref.ref) if event.get_type() == gen.lib.EventType.BURIAL and \ event_ref.get_role() == gen.lib.EventRoleType.PRIMARY: - return get_date_from_event_type(db,person,gen.lib.EventType.BAPTISM) - -def get_bury_date(db,person): - return get_date_from_event_type(db,person,gen.lib.EventType.BURIAL) + return get_date_from_event_type(db,person,gen.lib.EventType.BURIAL) def get_birth_date(db,person,estimate=False): if not person: