Missing format specifier for arguments of image status

Fixes https://github.com/Kilian/Trimage/issues/73
This commit is contained in:
Carson Reinke 2020-06-23 15:30:34 -04:00
parent 224f6b3503
commit 493a0e18d2

View file

@ -304,6 +304,7 @@ class ImageRow:
def __init__(self, image, waitingIcon=None): def __init__(self, image, waitingIcon=None):
"""Build the information visible in the table image row.""" """Build the information visible in the table image row."""
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() % i.filename_w_ext,
'oldfilesizestr': lambda i: human_readable_size(i.oldfilesize) 'oldfilesizestr': lambda i: human_readable_size(i.oldfilesize)
@ -331,9 +332,9 @@ class ImageRow:
message = "Compressing %s..." message = "Compressing %s..."
return message return message
if not self.image.compressed and self.image.recompression: if not self.image.compressed and self.image.recompression:
return "Queued for recompression..." return "Queued for recompression %s..."
if not self.image.compressed: if not self.image.compressed:
return "Queued..." return "Queued %s..."
return "%s" return "%s"
def __getitem__(self, key): def __getitem__(self, key):