From a6809934bdd3aff4277175588488101001422769 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 28 Dec 2023 16:52:07 -0500 Subject: [PATCH] Always use MARRIAGE type --- gramps/plugins/importer/importcsv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/importer/importcsv.py b/gramps/plugins/importer/importcsv.py index a152e17051a..e748e855c65 100644 --- a/gramps/plugins/importer/importcsv.py +++ b/gramps/plugins/importer/importcsv.py @@ -63,6 +63,7 @@ EventRef, EventType, Family, + FamilyRelType, Name, NameType, Note, @@ -1136,7 +1137,7 @@ def get_or_create_family(self, family_ref, husband, wife): family.set_mother_handle(wife.get_handle()) wife.add_family_handle(family.get_handle()) if husband and wife: - family.set_relationship(config.get("preferences.family-relation-type")) + family.set_relationship(FamilyRelType.MARRIED) self.db.add_family(family, self.trans) if husband: self.db.commit_person(husband, self.trans)