fixing mistake

This commit is contained in:
Vivek Teega 2019-09-01 14:40:34 +05:30
parent 4d1b1240d9
commit e1aaa29a1b

View File

@ -546,7 +546,8 @@ async def getLatestTransactionDetails():
tx_parsed_details['transactionDetails'] = json.loads(item[2])
tx_parsed_details['parsedFloData'] = json.loads(item[4])
tx_parsed_details['parsedFloData']['transactionType'] = item[3]
response = json.loads(requests.get('{}block/{}'.format(apiUrl,tx_parsed_details['blockhash'])))
response = requests.get('{}block/{}'.format(apiUrl,tx_parsed_details['transactionDetails']['blockhash']))
response = json.loads(response.content)
tx_parsed_details['transactionDetails']['blockheight'] = response['height']
tempdict.append(tx_parsed_details)
return jsonify(result='ok', latestTransactions=tempdict, temp=item)