fixed get_metadata

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2022-06-14 23:28:33 +02:00
parent e1a7ade68c
commit 54d4f31929
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -126,7 +126,10 @@ def get_metadata(connection, transaction_ids: list):
) )
if metadata is not None: if metadata is not None:
if len(metadata) > 0: 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 return _returned_data if len(_returned_data) > 0 else None