1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +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,)) cursor.execute('select * from overwatch where id=%s', (ctx.message.author.id,))
result = cursor.fetchone() result = cursor.fetchone()
if result: 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)) await self.bot.say("I have updated your saved battletag {}".format(ctx.message.author.mention))
else: else:
cursor.execute('insert into overwatch (id, battletag) values (%s, %s)', (ctx.message.author.id, username)) cursor.execute('insert into overwatch (id, battletag) values (%s, %s)', (ctx.message.author.id, username))