From 61a57b8fdfaf06085502d776799ea0a377ff061b Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 23 Aug 2017 22:06:57 +0200 Subject: [PATCH] Strange index and surnames count in narrative web Fixes #010172 --- gramps/plugins/webreport/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gramps/plugins/webreport/common.py b/gramps/plugins/webreport/common.py index 81e54282f..52f3775c7 100644 --- a/gramps/plugins/webreport/common.py +++ b/gramps/plugins/webreport/common.py @@ -290,12 +290,10 @@ def sort_people(dbase, handle_list, rlocale=glocale): primary_name = person.get_primary_name() if primary_name.group_as: - surname = primary_name.group_as.encode('utf-8') + surname = primary_name.group_as else: group_map = _nd.primary_surname(primary_name) surname = dbase.get_name_group_mapping(group_map) - if isinstance(surname, bytes): - surname = surname.decode('utf-8') # Treat people who have no name with those whose name is just # 'whitespace'