Fix leaderboard points

This commit is contained in:
furo 2021-11-07 12:20:31 +01:00
parent c234becc46
commit 40a0129f87

View File

@ -227,7 +227,7 @@ export function leaderboardRace(map, start, end) {
* @returns {array} An array containing the leaderboard * @returns {array} An array containing the leaderboard
*/ */
export function leaderboardPoints(map, start, end) { export function leaderboardPoints(type, start, end) {
const leaderboard = sqlite.prepare(` const leaderboard = sqlite.prepare(`
SELECT rank, player, points FROM points WHERE type = ? AND rank >= ? AND rank <= ? ORDER BY rank`) SELECT rank, player, points FROM points WHERE type = ? AND rank >= ? AND rank <= ? ORDER BY rank`)
.all(type, start, end) .all(type, start, end)