Skip to content

Commit

Permalink
cannot debug geneanet...
Browse files Browse the repository at this point in the history
  • Loading branch information
romjerome authored Jun 6, 2021
1 parent 67310a0 commit f1985fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GeneanetForGramps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ def random_headers():
if verbosity >= 2:
print(_("Sex:"), self.g_sex)
try:
bstring = '//div[@id="perso"]//ul[0]/li[0]'
bstring = '//div[@id="perso"]/ul[0]/li[0]/text()'
if verbosity >= 3:
print("bstring: "+bstring)
birth = tree.xpath(bstring)
Expand All @@ -1198,7 +1198,7 @@ def random_headers():
if verbosity >= 3:
print(_("birth")+": %s"%(birth))
try:
dstring = '//div[@id="perso"]//ul[0]/li[1]'
dstring = '//div[@id="perso"]/ul[0]/li[1]/text()'
if verbosity >= 3:
print("dstring: "+dstring)
death = tree.xpath(dstring)
Expand Down

0 comments on commit f1985fb

Please sign in to comment.