From 40a0129f8791f523a3ed836fc1f8fbb4e108a7c0 Mon Sep 17 00:00:00 2001 From: furo Date: Sun, 7 Nov 2021 12:20:31 +0100 Subject: [PATCH] Fix leaderboard points --- libs/database/wrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/database/wrapper.js b/libs/database/wrapper.js index 30fc8a8..111d82e 100644 --- a/libs/database/wrapper.js +++ b/libs/database/wrapper.js @@ -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) @@ -383,7 +383,7 @@ export default { unfinishedMaps, player, leaderboardPoints, - + map, graphMap, mapCategory,