From 467fc407978a468fbc1f3ecc445b117a5fc4aeb6 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 10 Jul 2016 11:00:37 -0500 Subject: [PATCH] Lol that's not how MySQL commands work, silly Phantom --- cogs/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/twitch.py b/cogs/twitch.py index 01d2554..b3c1efa 100644 --- a/cogs/twitch.py +++ b/cogs/twitch.py @@ -46,7 +46,7 @@ class Twitch: cursor.execute('select twitch_url from twitch where user_id="{}"'.format(ctx.message.author.id)) result = cursor.fetchone() if result is not None: - cursor.execute('update twitch set twitch_url="{}" from twitch where user_id="{}"'.format(url,ctx.message.author.id)) + cursor.execute('update twitch set twitch_url="{}" where user_id="{}"'.format(url,ctx.message.author.id)) else: cursor.execute('insert into twitch (user_id,server_id,twitch_url,notifications_on) values ("{}","{}","{}",1)' .format(ctx.message.author.id,ctx.message.server.id,url))