Add place name to place in geneweb import

Fixes #12710
This commit is contained in:
grocanar authored and Nick Hall committed 2023-05-12 21:24:59 +01:00
1 parent 3a7b17af01
commit 2c70982fab
1 file changed
+2 -1
+2 -1
View File
@@ -51,7 +51,7 @@ from gramps.gen.errors import GedcomError, GrampsImportError
from gramps.gen.lib import (Attribute, AttributeType, ChildRef, Citation,
Date, DateError, Event, EventRef, EventRoleType, EventType,
Family, FamilyRelType, Name, NameType, Note, Person, PersonRef,
Place, Source, LdsOrd)
Place, PlaceName ,Source, LdsOrd)
from gramps.gen.db import DbTxn
from html.entities import name2codepoint
@@ -960,6 +960,7 @@ class GeneWebParser:
place = self.db.get_place_from_handle(self.pkeys[place_name])
else:
place = Place()
place.name = PlaceName(value=place_name)
place.set_title(place_name)
self.db.add_place(place,self.trans)
self.db.commit_place(place,self.trans)