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:
Daniele Scasciafratte 2021-03-10 12:58:46 +01:00 committed by GitHub
parent f35be9c750
commit 031adf6054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):