9316: Unable to build narrated web site
This commit is contained in:
parent
6fabb04bbe
commit
32be137dd8
@ -7733,14 +7733,17 @@ class NavWebReport(Report):
|
||||
with self.user.progress(_("Narrated Web Site Report"),
|
||||
_('Creating GENDEX file'), len(ind_list)) as step:
|
||||
fp_gendex, gendex_io = self.create_file("gendex", ext=".txt")
|
||||
date = 0
|
||||
for person_handle in ind_list:
|
||||
step()
|
||||
person = self.database.get_person_from_handle(person_handle)
|
||||
datex = person.get_change_time()
|
||||
if datex > date: date = datex
|
||||
if self.archive:
|
||||
self.write_gendex(gendex_io, person)
|
||||
else:
|
||||
self.write_gendex(fp_gendex, person)
|
||||
self.close_file(fp_gendex, gendex_io, 0)
|
||||
self.close_file(fp_gendex, gendex_io, date)
|
||||
|
||||
def write_gendex(self, fp, person):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user