Skip to content

Commit 699c5c1

Browse files
committed
Make ancestor handles in DNA unique
1 parent c07748e commit 699c5c1

File tree

1 file changed

+1
-1
lines changed
  • gramps_webapi/api/resources

1 file changed

+1
-1
lines changed

gramps_webapi/api/resources/dna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_match_data(
129129
ancestor_handles = []
130130
else:
131131
rel_string = rel_strings[0]
132-
ancestor_handles = common_ancestors[0]
132+
ancestor_handles = list(dict.fromkeys(common_ancestors[0])) # make unique
133133
ancestor_profiles = [
134134
get_person_profile_for_handle(
135135
db_handle=db_handle, handle=handle, args=[], locale=locale

0 commit comments

Comments
 (0)