1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-15 11:23:48 -05:00
parent d1bbd452d2
commit f6b6240568

View file

@ -112,8 +112,7 @@ class Mod:
cursor.execute(sql)
cursor.execute("insert into {} (command, perms) values({}, {})",(ctx.message.server.id,command,permissions))
else:
sql = "select perms from `{}` where command=%s".format(ctx.message.server.id)
cursor.execute(sql, (command,))
cursor.execute("select perms from `%d` where command=%s",(ctx.message.server.id,command))
if cursor.fetchone() is None:
cursor.execute("insert into {} (command, perms) values({}, {})",(ctx.message.server.id,command,permissions))
else: