more consistent leaderboard

This commit is contained in:
biglyderv 2024-11-25 14:14:21 -05:00
parent 23b890f4f0
commit 91c54e8cd4
2 changed files with 17 additions and 10 deletions

View file

@ -21,7 +21,7 @@ app.use('/js', express.static('./common'));
app.use(express.static('./static'));
app.get('/leaderboard', async function (ws, req) {
req.send(JSON.stringify(await db.all('SELECT * from stats')));
req.send(JSON.stringify(await db.all('SELECT * FROM stats ORDER BY ko DESC LIMIT 100')));
})
app.ws('/', function (ws, req) {