5905 : thumbnails html file missing in the narrative web.

This commit is contained in:
SNoiraud 2015-11-28 12:23:17 +01:00
parent 0f72a796c2
commit e2c76dfb12

View File

@ -4804,8 +4804,6 @@ class ThumbnailPreviewPage(BasePage):
self.photo_keys = sorted(self.report.obj_dict[MediaObject],
key=lambda x: SORT_KEY(self.dbase_.get_object_from_handle(x).desc))
if not self.photo_keys:
return
media_list = []
for person_handle in self.photo_keys:
@ -4817,11 +4815,9 @@ class ThumbnailPreviewPage(BasePage):
if self.create_thumbs_only:
copy_thumbnail(self.report, person_handle, photo)
if not media_list:
return
media_list.sort(key=lambda x: SORT_KEY(x[0]))
# reate thumbnail preview page...
# create thumbnail preview page...
of, sio = self.report.create_file("thumbnails")
thumbnailpage, head, body = self.write_header(_("Thumbnails"))