mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
Merge pull request #74 from carsonreinke/fix-typeerror
Missing format specifier for arguments of image status
This commit is contained in:
commit
c21089f97b
1 changed files with 3 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue