Skip to content

Commit

Permalink
Fix all_people() simple access method to use new data format
Browse files Browse the repository at this point in the history
Fixes #13603.
  • Loading branch information
Nick-Hall committed Feb 6, 2025
1 parent e218374 commit 5e83e1b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gramps/gen/simple/_simpleaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,9 +812,16 @@ def all_people(self):
"""

with self.dbase.get_person_cursor() as cursor:
# data[3] is primary_name; data[3][5][0][0] is surname
slist = sorted(
(data[3][5][0][0] if data[3][5] else "", key) for key, data in cursor
(
(
data.primary_name.surname_list[0].surname
if data.primary_name.surname_list
else ""
),
key,
)
for key, data in cursor
)

for info in slist:
Expand Down

0 comments on commit 5e83e1b

Please sign in to comment.