mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
ruff rule FBT
This commit is contained in:
1 parent
cfc19434d0
commit
171a1cb876
11 files changed
+26
-26
No files matched your search
+1
-1
@@ -88,7 +88,7 @@ class Picture(SithFile):
|
||||
def get_absolute_url(self):
|
||||
return reverse("sas:picture", kwargs={"picture_id": self.id})
|
||||
|
||||
def generate_thumbnails(self, overwrite=False):
|
||||
def generate_thumbnails(self, *, overwrite=False):
|
||||
im = Image.open(BytesIO(self.file.read()))
|
||||
try:
|
||||
im = exif_auto_rotate(im)
|
||||
|
||||
Reference in new issue
Block a user