8033: cannot generate Narrative Web report with gendex option enabled, was previous place model (location fields)
This commit is contained in:
parent
b62e0208c2
commit
26560d0590
@ -507,11 +507,7 @@ def get_gendex_data(database, event_ref):
|
|||||||
if place_handle:
|
if place_handle:
|
||||||
place = database.get_place_from_handle(place_handle)
|
place = database.get_place_from_handle(place_handle)
|
||||||
if place:
|
if place:
|
||||||
location = get_main_location(self.dbase_, place)
|
poe = place.get_title()
|
||||||
poe = ", ".join(l for l in [
|
|
||||||
location.get(PlaceType.CITY, '').strip(),
|
|
||||||
location.get(PlaceType.STATE, '').strip(),
|
|
||||||
location.get(PlaceType.COUNTRY, '').strip()] if l)
|
|
||||||
return doe, poe
|
return doe, poe
|
||||||
|
|
||||||
def format_date(date):
|
def format_date(date):
|
||||||
|
Loading…
Reference in New Issue
Block a user