Fixing dictionary issue
This commit is contained in:
parent
746563dc0a
commit
965a7e829d
@ -278,7 +278,7 @@ def getcontractparticipants():
|
||||
conn.close()
|
||||
returnval = {}
|
||||
for row in result:
|
||||
returnval[row[0]] = ['participantAddress':row[1], 'tokenAmount':row[2], 'userChoice':row[3], 'transactionHash':row[4], 'winningAmount':row[5]]
|
||||
returnval[row[0]] = {'participantAddress':row[1], 'tokenAmount':row[2], 'userChoice':row[3], 'transactionHash':row[4], 'winningAmount':row[5]}
|
||||
|
||||
return jsonify(result='ok', participantInfo=returnval)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user