apply new ruff rules

This commit is contained in:
imperosol
2025-11-07 16:24:28 +01:00
parent d940e32dac
commit f027464d0e
7 changed files with 19 additions and 21 deletions

View File

@@ -1157,8 +1157,6 @@ class QuickUploadImage(models.Model):
identifier = str(uuid4())
name = Path(image.name).stem[: cls.IMAGE_NAME_SIZE - 1]
file = File(convert_image(image), name=f"{identifier}.webp")
width, height = Image.open(file).size
return cls.objects.create(
uuid=identifier,
name=name,