Fix shortpixel call

This commit is contained in:
Gabriel Augendre 2023-03-24 11:11:30 +01:00
parent 535d869ddc
commit 5055603927

View file

@ -86,7 +86,7 @@ class Attachment(models.Model):
"resize_height": settings.SHORTPIXEL_RESIZE_HEIGHT, "resize_height": settings.SHORTPIXEL_RESIZE_HEIGHT,
"keep_exif": 1, "keep_exif": 1,
"file_paths": json.dumps( "file_paths": json.dumps(
[f"{self.original_file.name}:{self.original_file.path}"], {self.original_file.name: self.original_file.path},
), ),
} }
data = {**base_data, **post_data} data = {**base_data, **post_data}