9316: Unable to build narrated web site

This commit is contained in:
SNoiraud 2016-03-19 23:08:02 +01:00
parent fd9b38dbed
commit 1a35de0446

View File

@ -7694,9 +7694,12 @@ class NavWebReport(Report):
with self.user.progress(_("Narrated Web Site Report"), with self.user.progress(_("Narrated Web Site Report"),
_('Creating GENDEX file'), len(ind_list)) as step: _('Creating GENDEX file'), len(ind_list)) as step:
fp_gendex, gendex_io = self.create_file("gendex", ext=".txt") fp_gendex, gendex_io = self.create_file("gendex", ext=".txt")
date = 0
for person_handle in ind_list: for person_handle in ind_list:
step() step()
person = self.database.get_person_from_handle(person_handle) person = self.database.get_person_from_handle(person_handle)
datex = person.get_change_time()
if datex > date: date = datex
if self.archive: if self.archive:
self.write_gendex(gendex_io, person) self.write_gendex(gendex_io, person)
else: else: