mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
Fix incomplete code of #77
I forgot to change the various `%s` in the pull request with the rest of the function or it will be print "Compressing %s".
This commit is contained in:
parent
f35be9c750
commit
031adf6054
1 changed files with 4 additions and 4 deletions
|
|
@ -327,14 +327,14 @@ class ImageRow:
|
||||||
def statusStr(self):
|
def statusStr(self):
|
||||||
"""Set the status message."""
|
"""Set the status message."""
|
||||||
if self.image.failed:
|
if self.image.failed:
|
||||||
return "ERROR: %s"
|
return "ERROR: {0}"
|
||||||
if self.image.compressing:
|
if self.image.compressing:
|
||||||
message = "Compressing %s..."
|
message = "Compressing {0}..."
|
||||||
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 %s..."
|
return "Queued for recompression {0}..."
|
||||||
if not self.image.compressed:
|
if not self.image.compressed:
|
||||||
return "Queued %s..."
|
return "Queued {0}..."
|
||||||
return "{0}"
|
return "{0}"
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue