From 15b91fea99ac0a3a49483663cfb19f999312d7a4 Mon Sep 17 00:00:00 2001 From: diminator Date: Mon, 9 Jan 2017 17:37:01 +0100 Subject: [PATCH] clean up links wrapper --- bigchaindb/web/views/statuses.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bigchaindb/web/views/statuses.py b/bigchaindb/web/views/statuses.py index e4554565..8ded2f29 100644 --- a/bigchaindb/web/views/statuses.py +++ b/bigchaindb/web/views/statuses.py @@ -34,9 +34,7 @@ class StatusApi(Resource): if args['tx_id']: status = bigchain.get_status(args['tx_id']) links = { - "_links": { - "tx": "/transactions/{}".format(args['tx_id']) - } + "tx": "/transactions/{}".format(args['tx_id']) } elif args['block_id']: @@ -57,6 +55,8 @@ class StatusApi(Resource): } if links: - response.update(links) + response.update({ + "_links": links + }) return response