Merge pull request #55 from troublescope/main

Refactor: Use io module for seek operation
This commit is contained in:
2024-03-21 13:22:14 +07:00 committed by GitHub
commit 0692acbc60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ class SaveFile:
file_name = getattr(fp, "name", "file.jpg")
fp.seek(0, os.SEEK_END)
fp.seek(0, io.SEEK_END)
file_size = fp.tell()
fp.seek(0)