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