From 55ad023172c581313819ad31e3946b89b87869e1 Mon Sep 17 00:00:00 2001 From: Juergen Eckel Date: Tue, 8 Oct 2019 23:24:37 +0200 Subject: [PATCH] fixed missing paranthesis issue with the to_dict() method Signed-off-by: Juergen Eckel --- bigchaindb/web/views/transactions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bigchaindb/web/views/transactions.py b/bigchaindb/web/views/transactions.py index 8c1940d9..e3baff27 100644 --- a/bigchaindb/web/views/transactions.py +++ b/bigchaindb/web/views/transactions.py @@ -51,16 +51,15 @@ class TransactionListApi(Resource): parser.add_argument('last_tx', type=parameters.valid_bool, required=False) args = parser.parse_args() - with current_app.config['bigchain_pool']() as bigchain: txs = bigchain.get_transactions_filtered(**args) if args['last_tx'] and args['last_tx'] is True: lastTX = None + for x in txs: lastTX = x - if lastTX: - return [lastTX.to_dict] + return [lastTX.to_dict()] else: return [] else: