Fix leaderboard points
This commit is contained in:
parent
c234becc46
commit
40a0129f87
|
@ -227,7 +227,7 @@ export function leaderboardRace(map, start, end) {
|
|||
|
||||
* @returns {array} An array containing the leaderboard
|
||||
*/
|
||||
export function leaderboardPoints(map, start, end) {
|
||||
export function leaderboardPoints(type, start, end) {
|
||||
const leaderboard = sqlite.prepare(`
|
||||
SELECT rank, player, points FROM points WHERE type = ? AND rank >= ? AND rank <= ? ORDER BY rank`)
|
||||
.all(type, start, end)
|
||||
|
|
Loading…
Reference in New Issue
Block a user