Fixed thumbnail data fallback

This commit is contained in:
Joel Collins 2020-10-28 15:41:06 +00:00
parent 3cfbb40655
commit 32ec2b463d

View file

@ -348,7 +348,7 @@ class CaptureObject(object):
if thumbnail: if thumbnail:
return io.BytesIO(thumbnail) return io.BytesIO(thumbnail)
# If no thumbnail exists, serve the full image # If no thumbnail exists, serve the full image
return self.data.getvalue() return self.data
def save(self) -> None: def save(self) -> None:
"""Write stream to file, and save/update metadata file""" """Write stream to file, and save/update metadata file"""