Skip to content

Commit

Permalink
fix: fixed sql query in leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
OneRandom1509 committed Sep 11, 2024
1 parent cb30e45 commit a37e9a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pwncore/routes/leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ async def _do_update(self):
' + "team"."points"), 0)'
)
)
.group_by("id")
.order_by("-tpoints")
.values("name", "tpoints")
),
separators=(",", ":"),
).encode("utf-8")
Expand Down

0 comments on commit a37e9a1

Please sign in to comment.