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:10:21 -05:00
parent a12f8ca10b
commit ef1445314e

View file

@ -112,7 +112,7 @@ class Mod:
cursor.execute(sql)
cursor.execute("insert into {} (command, perms) values({}, {})",(ctx.message.server.id,command,perms))
else:
cursor.execute("select perms from %s where command=%s",(ctx.message.server.id,command))
cursor.execute("select perms from `%s` 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,perms))
else: