9563: Sorting in family tab of narrated web report

This commit is contained in:
SNoiraud 2016-12-14 10:20:34 +01:00
parent 906035b022
commit b999e2df78

View File

@ -3195,9 +3195,11 @@ class FamilyPages(BasePage):
for person_handle in sorted(handle_list, key=lambda x: sort_on_name_and_grampsid(x, self.dbase_)): for person_handle in sorted(handle_list, key=lambda x: sort_on_name_and_grampsid(x, self.dbase_)):
person = self.dbase_.get_person_from_handle(person_handle) person = self.dbase_.get_person_from_handle(person_handle)
if person: if person:
family_list = pers_fam_dict[person_handle] family_list = person.get_family_handle_list()
first_family = True first_family = True
for family in family_list: for family_handle in family_list:
family = self.dbase_.get_family_from_handle(family_handle)
trow = Html("tr") trow = Html("tr")
tbody += trow tbody += trow