Changes in symbol.py
Removed tobytes as it is already bytes
This commit is contained in:
1 parent
137dc8765e
commit
af2abad1ff
1 file changed
+1
-1
@@ -45,7 +45,7 @@ class Symbol:
|
||||
lambda x: {
|
||||
"id": x.id,
|
||||
"label": x.label,
|
||||
"image": base64.b64encode(x.image.tobytes()).decode("utf-8"),
|
||||
"image": base64.b64encode(x.image).decode("utf-8"),
|
||||
},
|
||||
when_used="json",
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user