forked from sh-edraft.de/sh_discord_bot
Removed redundant set from sql queries #54
This commit is contained in:
parent
869439d3b8
commit
2df4f90802
@ -72,7 +72,7 @@ class AutoRole(TableABC):
|
|||||||
return str(f"""
|
return str(f"""
|
||||||
UPDATE `AutoRoles`
|
UPDATE `AutoRoles`
|
||||||
SET `ServerId` = {self._server_id},
|
SET `ServerId` = {self._server_id},
|
||||||
SET `DiscordMessageId` = {self._discord_message_id},
|
`DiscordMessageId` = {self._discord_message_id},
|
||||||
`LastModifiedAt` = '{self._modified_at}'
|
`LastModifiedAt` = '{self._modified_at}'
|
||||||
WHERE `AutoRoleId` = {self._auto_role_id};
|
WHERE `AutoRoleId` = {self._auto_role_id};
|
||||||
""")
|
""")
|
||||||
|
@ -71,8 +71,8 @@ class AutoRoleRule(TableABC):
|
|||||||
return str(f"""
|
return str(f"""
|
||||||
UPDATE `AutoRoleRules`
|
UPDATE `AutoRoleRules`
|
||||||
SET `AutoRoleId` = {self._auto_role_id},
|
SET `AutoRoleId` = {self._auto_role_id},
|
||||||
SET `DiscordEmojiName` = {self._discord_emoji_name},
|
`DiscordEmojiName` = {self._discord_emoji_name},
|
||||||
SET `DiscordRoleId` = {self._discord_role_id},
|
`DiscordRoleId` = {self._discord_role_id},
|
||||||
`LastModifiedAt` = '{self._modified_at}'
|
`LastModifiedAt` = '{self._modified_at}'
|
||||||
WHERE `AutoRoleRuleId` = {self._auto_role_rule_id};
|
WHERE `AutoRoleRuleId` = {self._auto_role_rule_id};
|
||||||
""")
|
""")
|
||||||
|
Loading…
Reference in New Issue
Block a user