chore: sonar adjustments

This commit is contained in:
Zamitto 2024-12-23 10:50:35 -03:00
parent b74035979f
commit ea90b49604
5 changed files with 6 additions and 6 deletions

View file

@ -15,8 +15,8 @@ class ProfileImageProcessor:
mime_type = image.get_format_mimetype()
return image_path, mime_type
else:
newUUID = str(uuid.uuid4())
new_image_path = os.path.join(tempfile.gettempdir(), newUUID) + ".webp"
new_uuid = str(uuid.uuid4())
new_image_path = os.path.join(tempfile.gettempdir(), new_uuid) + ".webp"
image.save(new_image_path)
new_image = Image.open(new_image_path)