Fixed getMarriage and getDivorce
svn: r274
This commit is contained in:
parent
fb900d176f
commit
3aefcaf4e4
@ -822,13 +822,13 @@ class Family:
|
|||||||
|
|
||||||
def getMarriage(self):
|
def getMarriage(self):
|
||||||
for e in self.EventList:
|
for e in self.EventList:
|
||||||
if e.getType == "Marriage":
|
if e.getName() == "Marriage":
|
||||||
return e
|
return e
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def getDivorce(self):
|
def getDivorce(self):
|
||||||
for e in self.EventList:
|
for e in self.EventList:
|
||||||
if e.getType == "Divorce":
|
if e.getName() == "Divorce":
|
||||||
return e
|
return e
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user