1
0
Fork 0
mirror of synced 2024-05-28 16:29:43 +12:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-15 15:28:14 -05:00
parent 1cfbe57bc7
commit 48a753cf26

View file

@ -12,10 +12,10 @@ def customPermsOrRole(perm):
cmd = str(ctx.command)
sid = ctx.message.server.id
cursor.execute("show tables like '{}'".format(sid))
cursor.execute("show tables like %s", (sid,))
result = cursor.fetchone()
if result is not None:
sql = "select perms from `"+ctx.message.server.id+"`where command=%s"
sql = "select perms from `"+sid+"`where command=%s"
cursor.execute(sql,(cmd,))
result = cursor.fetchone()
perm = result['perms']