parent
f3ffd3655a
commit
657b5119a6
@ -510,9 +510,9 @@ class CSVParser:
|
|||||||
if gender:
|
if gender:
|
||||||
# replace
|
# replace
|
||||||
gender = gender.lower()
|
gender = gender.lower()
|
||||||
if gender == gender_map[gen.lib.Person.MALE]:
|
if gender == gender_map[gen.lib.Person.MALE].lower():
|
||||||
gender = gen.lib.Person.MALE
|
gender = gen.lib.Person.MALE
|
||||||
elif gender == gender_map[gen.lib.Person.FEMALE]:
|
elif gender == gender_map[gen.lib.Person.FEMALE].lower():
|
||||||
gender = gen.lib.Person.FEMALE
|
gender = gen.lib.Person.FEMALE
|
||||||
else:
|
else:
|
||||||
gender = gen.lib.Person.UNKNOWN
|
gender = gen.lib.Person.UNKNOWN
|
||||||
@ -634,9 +634,9 @@ class CSVParser:
|
|||||||
person.gramps_id = person_ref[1:-1]
|
person.gramps_id = person_ref[1:-1]
|
||||||
if person.get_gender() == gen.lib.Person.UNKNOWN and gender is not None:
|
if person.get_gender() == gen.lib.Person.UNKNOWN and gender is not None:
|
||||||
gender = gender.lower()
|
gender = gender.lower()
|
||||||
if gender == gender_map[gen.lib.Person.MALE]:
|
if gender == gender_map[gen.lib.Person.MALE].lower():
|
||||||
gender = gen.lib.Person.MALE
|
gender = gen.lib.Person.MALE
|
||||||
elif gender == gender_map[gen.lib.Person.FEMALE]:
|
elif gender == gender_map[gen.lib.Person.FEMALE].lower():
|
||||||
gender = gen.lib.Person.FEMALE
|
gender = gen.lib.Person.FEMALE
|
||||||
else:
|
else:
|
||||||
gender = gen.lib.Person.UNKNOWN
|
gender = gen.lib.Person.UNKNOWN
|
||||||
|
Loading…
Reference in New Issue
Block a user