Skip to content

Commit

Permalink
Handle not found when creating the updates page
Browse files Browse the repository at this point in the history
Fixes #13216
  • Loading branch information
SNoiraud committed Apr 8, 2024
1 parent c5468de commit 80a1045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gramps/plugins/webreport/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ def sort_on_change(handle):
fct = self.report.database.get_place_from_handle
fct_link = self.place_link
elif object_type == Source:
fct = self.report.database.get_place_from_handle
fct = self.report.database.get_source_from_handle
fct_link = self.source_link
elif object_type == Repository:
fct = self.report.database.get_place_from_handle
fct = self.report.database.get_repository_from_handle
fct_link = self.repository_link
elif object_type == Media:
fct = self.report.database.get_place_from_handle
fct = self.report.database.get_media_from_handle
obj_list = sorted(
self.report.obj_dict[object_type], key=sort_on_change, reverse=True
)
Expand Down

0 comments on commit 80a1045

Please sign in to comment.