#4161 #8548: Fix a baptism date error

https://gramps-project.org/bugs/view.php?id=8548#c41455

also reported and patched by 'hmmmpf' on #4161
This commit is contained in:
Enno Borgsteede 2015-05-26 20:23:21 +02:00 committed by Jérôme Rapinat
parent fd90c19515
commit afe7fa39f9

View File

@ -636,9 +636,8 @@ class GeneWebParser(object):
birth_source = self.get_or_create_source(self.decode(fields[idx])) birth_source = self.get_or_create_source(self.decode(fields[idx]))
idx += 1 idx += 1
elif field[0] == '!': elif field[0] == '!':
LOG.debug("Baptize at: %s" % fields[idx]) LOG.debug("Baptize at: %s" % field[1:])
bapt_date = self.parse_date(self.decode(fields[idx][1:])) bapt_date = self.parse_date(self.decode(field[1:]))
idx += 1
elif field == '#bp' and idx < len(fields): elif field == '#bp' and idx < len(fields):
LOG.debug("Birth Place: %s" % fields[idx]) LOG.debug("Birth Place: %s" % fields[idx])
birth_place = self.get_or_create_place(self.decode(fields[idx])) birth_place = self.get_or_create_place(self.decode(fields[idx]))