I'm trying to add previously added integers in the json file. for discord.py
@client.command()
async def mine(ctx):
await open_account(ctx.author)
users = await get_wallet_data()
user = ctx.author
earnings = int(random.randrange(11))
em = discord.Embed(title = 'Mined NeoCoins')
em.add_field(name = 'Earnings:', value = earnings)
await ctx.send(embed = em)
wallet_amt = users[str(user.id)]['Wallet']
print(wallet_amt)
nw = wallet_amt =+ earnings
nw = users[str(user.id)]['Wallet']
print(nw)
with open('wallet.json','w') as f:
users = json.dump(users,f)
But I'm getting that same value. Not the added value