8011: Fix backlinks code in place report
Backlinks for places can now also be places as well as events.
This commit is contained in:
parent
60ca25deee
commit
550eac7d64
@ -179,7 +179,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:
|
||||
@ -257,7 +257,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")
|
||||
|
Loading…
Reference in New Issue
Block a user