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:
parent
e532780a6e
commit
018ba4a3f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user