get_family_handles with sort_handles
This commit is contained in:
parent
605aab85fd
commit
d3328826ec
@ -370,8 +370,7 @@ class DBAPI(DbGeneric):
|
|||||||
if sort_handles:
|
if sort_handles:
|
||||||
self.dbapi.execute("""SELECT DISTINCT family.handle FROM family
|
self.dbapi.execute("""SELECT DISTINCT family.handle FROM family
|
||||||
JOIN person
|
JOIN person
|
||||||
ON (family.father_handle = person.handle OR
|
ON family.father_handle = person.handle
|
||||||
family.mother_handle = person.handle)
|
|
||||||
ORDER BY person.primary_name__surname_list__0__surname,
|
ORDER BY person.primary_name__surname_list__0__surname,
|
||||||
person.primary_name__first_name;""")
|
person.primary_name__first_name;""")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user