more consistent leaderboard
This commit is contained in:
parent
23b890f4f0
commit
91c54e8cd4
2 changed files with 17 additions and 10 deletions
2
index.js
2
index.js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue