Skip to content

Commit

Permalink
more cleanup on spouses list
Browse files Browse the repository at this point in the history
  • Loading branch information
romjerome authored Apr 19, 2023
1 parent d14ad26 commit 8cd6fdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GeneanetForGramps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ def random_headers():
for spouse in spouses:
for a in spouse.xpath('a'):
try:
ref = a.xpath('attribute::href')[s]
ref = a.xpath('attribute::href')[0]
if verbosity >= 2:
print(_("Spouse %d ref: %s") %(s, ref))
except:
Expand Down Expand Up @@ -1377,7 +1377,7 @@ def random_headers():
try:
self.marriageplace.append(str(marriage[0].split(',')[1][1:]).title())
if verbosity >= 2:
print(_("Married place:"), self.marriageplace[s])
print(_("Married place:"), self.marriageplace[0])
except:
self.marriageplace.append(str(marriage[0]))
try:
Expand All @@ -1387,10 +1387,10 @@ def random_headers():
self.marriageplacecode.append(_("not match"))
else:
if verbosity >= 2:
print(_("Married place code:"), self.marriageplacecode[s])
print(_("Married place code:"), self.marriageplacecode[0])
self.marriageplacecode.append(marriageplacecode)
except:
LOG.debug(str(marriage[s]))
LOG.debug(str(marriage[0]))

cnum = 0
clist = []
Expand Down

0 comments on commit 8cd6fdf

Please sign in to comment.