From fbe110386523a81052260d389d8e9163426ad96a Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:57:59 +0100 Subject: [PATCH] bug fix --- src/app/repositories/highscore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/repositories/highscore.py b/src/app/repositories/highscore.py index ce602c0..bdc25d9 100644 --- a/src/app/repositories/highscore.py +++ b/src/app/repositories/highscore.py @@ -33,6 +33,7 @@ async def get(self, id: int): data: list[dict] = await self._simple_execute(sql) for d in data: d["PlayerHiscoreDataLatest"]["name"] = d.pop("name") + d = d["PlayerHiscoreDataLatest"] return data async def get_many(self, start: int, limit: int = 5000): @@ -43,6 +44,7 @@ async def get_many(self, start: int, limit: int = 5000): data: list[dict] = await self._simple_execute(sql) for d in data: d["PlayerHiscoreDataLatest"]["name"] = d.pop("name") + d = d["PlayerHiscoreDataLatest"] return data async def delete(self, id):