Skip to content

Commit

Permalink
Fix lb scores not returning requested amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed May 31, 2024
1 parent 613de5a commit 4f107c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaderboards/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f107c8

Please sign in to comment.