Improved sidebar handling & added minecraftId to profile #130

This commit is contained in:
2023-02-18 11:34:33 +01:00
parent b96288f4a3
commit de8262dae1
5 changed files with 85 additions and 45 deletions

View File

@@ -140,7 +140,7 @@ class User(TableABC):
) VALUES (
{self._discord_id},
{self._xp},
'{"NULL" if self._minecraft_id is None else self._minecraft_id}',
'{self._minecraft_id}',
{self._server.id},
'{self._created_at}',
'{self._modified_at}'
@@ -154,7 +154,7 @@ class User(TableABC):
f"""
UPDATE `Users`
SET `XP` = {self._xp},
`MinecraftId` = '{"NULL" if self._minecraft_id is None else self._minecraft_id}',
`MinecraftId` = '{self._minecraft_id}',
`LastModifiedAt` = '{self._modified_at}'
WHERE `UserId` = {self._user_id};
"""