5708: Confusing results with statistic gramplet and filter; fixes suggested by PeterL's patch

svn: r19415
This commit is contained in:
Doug Blank
2012-04-30 13:21:21 +00:00
parent b557be86d9
commit 5bfe83b19f
3 changed files with 17 additions and 10 deletions

View File

@@ -59,8 +59,8 @@ fname_map = {'all': _('Filtering_on|all'),
'females': _('Filtering_on|females'),
'people with unknown gender':
_('Filtering_on|people with unknown gender'),
'people with incomplete names':
_('Filtering_on|people with incomplete names'),
'incomplete names':
_('Filtering_on|incomplete names'),
'people with missing birth dates':
_('Filtering_on|people with missing birth dates'),
'disconnected people': _('Filtering_on|disconnected people'),
@@ -277,7 +277,7 @@ def run(database, document, filter_name, *args, **kwargs):
str(person.get_primary_name().get_type()))
matches += 1
elif (filter_name == 'people with incomplete names'):
elif (filter_name == 'incomplete names'):
stab.columns(_("Name"), _("Birth Date"), _("Name type"))
for person in database.iter_people():
for name in [person.get_primary_name()] + person.get_alternate_names():