1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-23 17:34:17 +03:00

fixed image saving

This commit is contained in:
Adolfo Gómez García 2023-01-11 12:39:31 +01:00
parent e532780a6e
commit 018ba4a3f8
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -69,7 +69,7 @@ class Images(ModelHandler):
]
def beforeSave(self, fields: typing.Dict[str, typing.Any]) -> None:
fields['data'] = Image.prepareForDb(Image.decode64(fields['data']))
fields['data'] = Image.prepareForDb(Image.decode64(fields['data']))[2]
def afterSave(self, item: Image) -> None:
# Updates the thumbnail and re-saves it