From 2df4f9080265e95d35283a8d8746cbacc675d130 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 5 Oct 2022 18:09:27 +0200 Subject: [PATCH] Removed redundant set from sql queries #54 --- src/bot_data/model/auto_role.py | 2 +- src/bot_data/model/auto_role_rule.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bot_data/model/auto_role.py b/src/bot_data/model/auto_role.py index 26d5dba2..dbf73529 100644 --- a/src/bot_data/model/auto_role.py +++ b/src/bot_data/model/auto_role.py @@ -72,7 +72,7 @@ class AutoRole(TableABC): return str(f""" UPDATE `AutoRoles` SET `ServerId` = {self._server_id}, - SET `DiscordMessageId` = {self._discord_message_id}, + `DiscordMessageId` = {self._discord_message_id}, `LastModifiedAt` = '{self._modified_at}' WHERE `AutoRoleId` = {self._auto_role_id}; """) diff --git a/src/bot_data/model/auto_role_rule.py b/src/bot_data/model/auto_role_rule.py index 45f43c1b..38f40b3c 100644 --- a/src/bot_data/model/auto_role_rule.py +++ b/src/bot_data/model/auto_role_rule.py @@ -71,8 +71,8 @@ class AutoRoleRule(TableABC): return str(f""" UPDATE `AutoRoleRules` SET `AutoRoleId` = {self._auto_role_id}, - SET `DiscordEmojiName` = {self._discord_emoji_name}, - SET `DiscordRoleId` = {self._discord_role_id}, + `DiscordEmojiName` = {self._discord_emoji_name}, + `DiscordRoleId` = {self._discord_role_id}, `LastModifiedAt` = '{self._modified_at}' WHERE `AutoRoleRuleId` = {self._auto_role_rule_id}; """)