Skip to content

Commit

Permalink
fix(overview): Limit leaderboard to show 10 users
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Oct 24, 2024
1 parent 48b97cd commit eda68d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/OverviewCardsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public function leaderboard(
SolutionEventRepository $solutionEventRepository,
): Response {
$leaderboard = $solutionEventRepository->listLeaderboard($user->getGroup(), '7 days');
$leaderboard = \array_slice($leaderboard, 0, 10);

return $this->render('overview/cards/leaderboard.html.twig', [
'leaderboard' => $leaderboard,
Expand Down

0 comments on commit eda68d6

Please sign in to comment.