Skip to content

Commit

Permalink
Return the top 20 players
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Sep 17, 2024
1 parent 02cf50c commit f432ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Data/RankingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function validate(array $argv)

public function run(AbstractSocket $socket, array $argv, int $id)
{
$sql = "SELECT username, elo FROM users WHERE lastLoginAt IS NOT NULL ORDER BY elo DESC LIMIT 100";
$sql = "SELECT username, elo FROM users WHERE lastLoginAt IS NOT NULL ORDER BY elo DESC LIMIT 20";

$arr = $this->db->query($sql)->fetchAll(\PDO::FETCH_ASSOC);

Expand Down

0 comments on commit f432ab2

Please sign in to comment.