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