Changes in symbol.py
Trying to properly serialise array
This commit is contained in:
1 parent
c1dcf4b055
commit
67e10c6df4
1 file changed
+2
-2
@@ -45,8 +45,8 @@ class Symbol:
|
||||
lambda x: {
|
||||
'id': x.id,
|
||||
'label': x.label,
|
||||
'image': x.image
|
||||
'image': x.image.tolist() if hasattr(x.image, 'tolist') else list(x.image)
|
||||
},
|
||||
when_used='json',
|
||||
),
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user