Issue 6188. Number of unique surnames are now correct in both StatsGramplet and SurnameCloudgramplet.
svn: r20683
This commit is contained in:
parent
c4e86a732c
commit
94f108807f
@ -106,11 +106,16 @@ class StatsGramplet(Gramplet):
|
|||||||
for name in [person.get_primary_name()] + person.get_alternate_names():
|
for name in [person.get_primary_name()] + person.get_alternate_names():
|
||||||
if name.get_first_name().strip() == "":
|
if name.get_first_name().strip() == "":
|
||||||
incomp_names += 1
|
incomp_names += 1
|
||||||
|
if not name.get_surname().strip() in namelist:
|
||||||
|
namelist.append(name.get_surname().strip())
|
||||||
else:
|
else:
|
||||||
if name.get_surname_list():
|
if name.get_surname_list():
|
||||||
for surname in name.get_surname_list():
|
for surname in name.get_surname_list():
|
||||||
if surname.get_surname().strip() == "":
|
if surname.get_surname().strip() == "":
|
||||||
incomp_names += 1
|
incomp_names += 1
|
||||||
|
else:
|
||||||
|
if not surname.get_surname().strip() in namelist:
|
||||||
|
namelist.append(surname.get_surname().strip())
|
||||||
else:
|
else:
|
||||||
incomp_names += 1
|
incomp_names += 1
|
||||||
|
|
||||||
|
@ -106,6 +106,7 @@ class SurnameCloudGramplet(Gramplet):
|
|||||||
surname_sort = []
|
surname_sort = []
|
||||||
total = cnt = 0
|
total = cnt = 0
|
||||||
for surname in surnames:
|
for surname in surnames:
|
||||||
|
if not surname.strip() == "":
|
||||||
surname_sort.append( (surnames[surname], surname) )
|
surname_sort.append( (surnames[surname], surname) )
|
||||||
total += surnames[surname]
|
total += surnames[surname]
|
||||||
cnt += 1
|
cnt += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user