A-0.3 - Basismodul #36
@ -72,12 +72,12 @@ class Server(TableABC):
|
||||
UPDATE `Servers`
|
||||
SET `DiscordServerId` = {self._discord_server_id},
|
||||
`LastModifiedAt` = '{self._modified_at}'
|
||||
WHERE `Id` = {self._id};
|
||||
WHERE `Id` = {self._server_id};
|
||||
""")
|
||||
|
||||
@property
|
||||
def delete_string(self) -> str:
|
||||
return str(f"""
|
||||
DELETE FROM `Servers`
|
||||
WHERE `Id` = {self._id};
|
||||
WHERE `Id` = {self._server_id};
|
||||
""")
|
||||
|
@ -93,12 +93,12 @@ class User(TableABC):
|
||||
UPDATE `Users`
|
||||
SET `XP` = {self._xp},
|
||||
`LastModifiedAt` = '{self._modified_at}'
|
||||
WHERE `Id` = {self._id};
|
||||
WHERE `Id` = {self._user_id};
|
||||
""")
|
||||
|
||||
@property
|
||||
def delete_string(self) -> str:
|
||||
return str(f"""
|
||||
DELETE FROM `Users`
|
||||
WHERE `Id` = {self._id};
|
||||
WHERE `Id` = {self._user_id};
|
||||
""")
|
||||
|
Reference in New Issue
Block a user