From 559c3b92373607690611c7d481d079183abc2f8f Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 31 Jul 2020 23:52:55 +0100 Subject: [PATCH] Changed column name in database --- settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.py b/settings.py index 95bceb81..84793b3b 100644 --- a/settings.py +++ b/settings.py @@ -249,7 +249,7 @@ async def storeRoles(target, ctx, member): async with pool.acquire() as conn: async with conn.cursor() as cur: # Store the existing roles of the user within the database - update_query = """UPDATE members SET roles = (%s) WHERE guildID = (%s) AND discordID = (%s)""" + update_query = """UPDATE members SET mutedroles = (%s) WHERE guildID = (%s) AND discordID = (%s)""" update_vals = role_ids, ctx.guild.id, member.id # Execute the query @@ -265,7 +265,7 @@ async def clearRoles(ctx, member, pool): async with pool.acquire() as conn: async with conn.cursor() as cur: # Clear the existing roles of the user from the database - update_query = """UPDATE members SET roles = NULL WHERE guildID = (%s) AND discordID = (%s)""" + update_query = """UPDATE members SET mutedroles = NULL WHERE guildID = (%s) AND discordID = (%s)""" update_vals = ctx.guild.id, member.id # Execute the query