A-0.3 - Basismodul #36

Merged
edraft merged 48 commits from 0.3 into Alpha 2021-12-27 18:17:42 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit ce70e816fe - Show all commits

View File

@ -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};
""") """)

View File

@ -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};
""") """)