1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Replaced the misplaces $ with a %

This commit is contained in:
phxntxm 2016-07-13 21:50:38 -05:00
parent 9eebb9361d
commit 946b61b926

View file

@ -34,7 +34,7 @@ class Overwatch:
cursor.execute('select * from overwatch where id=%s', (ctx.message.author.id,))
result = cursor.fetchone()
if result:
cursor.execute('update overwatch set battletag=%s where id=$s', (username, ctx.message.author.id))
cursor.execute('update overwatch set battletag=%s where id=%s', (username, ctx.message.author.id))
await self.bot.say("I have updated your saved battletag {}".format(ctx.message.author.mention))
else:
cursor.execute('insert into overwatch (id, battletag) values (%s, %s)', (ctx.message.author.id, username))