Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Feb 3, 2024
1 parent 1c09db1 commit fbe1103
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/repositories/highscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit fbe1103

Please sign in to comment.