8950 : narrativeweb : change mtime at the bad place and made twice.

This commit is contained in:
SNoiraud 2015-12-04 11:11:16 +01:00
parent ca2607de0e
commit b9d3378020

View File

@ -549,8 +549,6 @@ def copy_thumbnail(report, handle, photo, region=None):
from_path = get_thumbnail_path(full_path, from_path = get_thumbnail_path(full_path,
photo.get_mime_type(), photo.get_mime_type(),
region) region)
mtime = os.stat(full_path).st_mtime
os.utime(to_path, (mtime, mtime))
if not os.path.isfile(from_path): if not os.path.isfile(from_path):
from_path = CSS["Document"]["filename"] from_path = CSS["Document"]["filename"]
else: else: