Fixed getMarriage and getDivorce

svn: r274
This commit is contained in:
Don Allingham 2001-08-01 04:32:48 +00:00
parent f68abf0c01
commit 4befed221f

View File

@ -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