This fix https://github.com/Kilian/Trimage/issues/77
As debian user this fix the issue for me
This commit is contained in:
Daniele Scasciafratte 2021-03-04 19:26:55 +01:00 committed by GitHub
parent c21089f97b
commit 636b5a9750
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ class ImageRow:
self.image = image self.image = image
d = { d = {
'filename_w_ext': lambda i: self.statusStr() % i.filename_w_ext, 'filename_w_ext': lambda i: self.statusStr().format(i.filename_w_ext),
'oldfilesizestr': lambda i: human_readable_size(i.oldfilesize) 'oldfilesizestr': lambda i: human_readable_size(i.oldfilesize)
if i.compressed else "", if i.compressed else "",
'newfilesizestr': lambda i: human_readable_size(i.newfilesize) 'newfilesizestr': lambda i: human_readable_size(i.newfilesize)
@ -335,7 +335,7 @@ class ImageRow:
return "Queued for recompression %s..." return "Queued for recompression %s..."
if not self.image.compressed: if not self.image.compressed:
return "Queued %s..." return "Queued %s..."
return "%s" return "{0}"
def __getitem__(self, key): def __getitem__(self, key):
return self.d[key](self.image) return self.d[key](self.image)