mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
fixed missing paranthesis issue with the to_dict() method
Signed-off-by: Juergen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
17d683b3fa
commit
55ad023172
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user