Skip to content

Commit

Permalink
Always use MARRIAGE type
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Dec 28, 2023
1 parent d666741 commit a680993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gramps/plugins/importer/importcsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
EventRef,
EventType,
Family,
FamilyRelType,
Name,
NameType,
Note,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a680993

Please sign in to comment.