From 44e82478413935add90687353f71e929f488c6c9 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 15 Jul 2016 10:03:46 -0500 Subject: [PATCH] Fixed syntax error --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index b00030f..92556f7 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -114,7 +114,7 @@ class Mod: else: cursor.execute("select perms from %s where command=%s",(ctx.message.server.id,command)) if cursor.fetchone() is None: - cursor.execute("insert into %s (server_id, command, perms) values(%s, %s, %s)",(ctx.message.server.id,command,perms)) + cursor.execute("insert into %s (server_id, command, perms) values(%s, %s, %s)",(ctx.message.server.id,ctx.message.server.id,command,perms)) else: cursor.execute("update %s set perms=%s where command=%s",(ctx.message.server.id,command,perms,command))