From 4befed221f10b002225641ac272d4d3011f678b5 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 1 Aug 2001 04:32:48 +0000 Subject: [PATCH] Fixed getMarriage and getDivorce svn: r274 --- src/RelLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RelLib.py b/src/RelLib.py index a0c1577cb..962a5f75c 100644 --- a/src/RelLib.py +++ b/src/RelLib.py @@ -822,13 +822,13 @@ class Family: def getMarriage(self): for e in self.EventList: - if e.getType == "Marriage": + if e.getName() == "Marriage": return e return None def getDivorce(self): for e in self.EventList: - if e.getType == "Divorce": + if e.getName() == "Divorce": return e return None