From 1c686274be778e024954576193130eb63d8c10e4 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 2 Sep 2016 09:45:00 -0500 Subject: [PATCH 1/2] This fix makes Place GID vs place name consistent across runs for Gedcom import --- gramps/plugins/lib/libplaceimport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libplaceimport.py b/gramps/plugins/lib/libplaceimport.py index f27720609..3383104e7 100644 --- a/gramps/plugins/lib/libplaceimport.py +++ b/gramps/plugins/lib/libplaceimport.py @@ -21,6 +21,7 @@ """ Helper class for importing places. """ +from _collections import OrderedDict #------------------------------------------------------------------------- # @@ -41,7 +42,7 @@ class PlaceImport: def __init__(self, db): self.db = db self.loc2handle = {} - self.handle2loc = {} + self.handle2loc = OrderedDict() def store_location(self, location, handle): """ From 0597613139040c051b9610510e8cb004049d4213 Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 2 Sep 2016 10:35:21 -0500 Subject: [PATCH 2/2] typo --- gramps/plugins/lib/libplaceimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libplaceimport.py b/gramps/plugins/lib/libplaceimport.py index 3383104e7..da7c4eb26 100644 --- a/gramps/plugins/lib/libplaceimport.py +++ b/gramps/plugins/lib/libplaceimport.py @@ -21,7 +21,7 @@ """ Helper class for importing places. """ -from _collections import OrderedDict +from collections import OrderedDict #------------------------------------------------------------------------- #