8011: Fix backlinks code in place report

Backlinks for places can now also be places as well as events.
This commit is contained in:
Nick Hall 2014-08-24 18:56:49 +01:00
parent 63f4abfe47
commit 7ec13cac24

View File

@ -178,7 +178,7 @@ class PlaceReport(Report):
This procedure writes out each of the events related to the place
"""
event_handles = [event_handle for (object_type, event_handle) in
self.database.find_backlink_handles(handle,['Event'])]
self.database.find_backlink_handles(handle, ['Event'])]
event_handles.sort(key=self.sort.by_date_key)
if event_handles:
@ -254,7 +254,7 @@ class PlaceReport(Report):
This procedure writes out each of the people related to the place
"""
event_handles = [event_handle for (object_type, event_handle) in
self.database.find_backlink_handles(handle)]
self.database.find_backlink_handles(handle, ['Event'])]
if event_handles:
self.doc.start_paragraph("PLC-Section")