From 4f107c8c8bc9b0510aa4faa1cd929371dcd5ab22 Mon Sep 17 00:00:00 2001 From: Samuel Cattini-Schultz Date: Sat, 1 Jun 2024 00:26:39 +1000 Subject: [PATCH] Fix lb scores not returning requested amount --- leaderboards/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaderboards/views.py b/leaderboards/views.py index 595ab10..fb2cbf2 100644 --- a/leaderboards/views.py +++ b/leaderboards/views.py @@ -291,7 +291,7 @@ def get(self, request, leaderboard_type, gamemode, leaderboard_id): 1800, ) else: - scores = leaderboard.get_top_scores(limit=5) + scores = leaderboard.get_top_scores(limit=limit) serialiser = LeaderboardScoreSerialiser(scores, many=True) return Response(serialiser.data)