From 505560392742497c1bc019934499f691f4e526c9 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 24 Mar 2023 11:11:30 +0100 Subject: [PATCH] Fix shortpixel call --- src/attachments/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attachments/models.py b/src/attachments/models.py index f8be2bd..7021199 100644 --- a/src/attachments/models.py +++ b/src/attachments/models.py @@ -86,7 +86,7 @@ class Attachment(models.Model): "resize_height": settings.SHORTPIXEL_RESIZE_HEIGHT, "keep_exif": 1, "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}