mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
fixed get_metadata
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
e1a7ade68c
commit
54d4f31929
@ -126,7 +126,10 @@ def get_metadata(connection, transaction_ids: list):
|
||||
)
|
||||
if metadata is not None:
|
||||
if len(metadata) > 0:
|
||||
_returned_data.append(json.loads(metadata))
|
||||
metadata[0] = list(metadata[0])
|
||||
metadata[0][1] = json.loads(metadata[0][1])
|
||||
metadata[0] = tuple(metadata[0])
|
||||
_returned_data.append(metadata)
|
||||
return _returned_data if len(_returned_data) > 0 else None
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user