Revert "9899: polish; gen.lib.person arlready called, make test on gender more clear"

This reverts commit fe763b7490c69a331f3931a488294549c3ee29e3.
This commit is contained in:
système 2017-01-14 10:22:01 +01:00
parent b31f6922dd
commit 8841d13a7e

View File

@ -700,9 +700,9 @@ def parents_labels(db, family):
if len(family.get_child_ref_list()) > 0:
rel_father = _('Father')
rel_mother = _('Mother')
if father.gender == Person.FEMALE:
if father.gender == 0:
rel_father = rel_mother
if mother.gender == Person.MALE:
if mother.gender == 1:
rel_mother = _('Father')
else:
rc = RelationshipCalculator()