Build surname list with unique names

Fixes #10186.
This commit is contained in:
Nick Hall 2017-09-23 00:37:35 +01:00
parent c632d0f6a9
commit cd602170fd

View File

@ -1655,7 +1655,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
bsddb
"""
self.surname_list = sorted(
[s.decode('utf-8') for s in self.surnames.keys()],
[s.decode('utf-8') for s in set(self.surnames.keys())],
key=glocale.sort_key)
def add_to_surname_list(self, person, batch_transaction):