From c31e4fe77467486dc03226ebdad4c0bc67e1d715 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 14 Apr 2021 21:24:11 -0500 Subject: Total leaderboards leaderboard working (#6) * add leaderboards leaderboard * slightly optimize fetchPlayer to not unnecessarily fetch the same player twice * Compiled TS into JS * fix errors with fetch * fix random bugs that made people disappear from leaderboards --- build/cleaners/skyblock/stats.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build/cleaners/skyblock/stats.js') diff --git a/build/cleaners/skyblock/stats.js b/build/cleaners/skyblock/stats.js index 0eb94c7..482771c 100644 --- a/build/cleaners/skyblock/stats.js +++ b/build/cleaners/skyblock/stats.js @@ -60,7 +60,8 @@ exports.categorizeStat = categorizeStat; exports.statUnits = { time: ['_best_time', '_best_time_2'], date: ['first_join'], - coins: ['purse'] + coins: ['purse'], + leaderboards: ['leaderboards_count'] }; function getStatUnit(name) { for (const [unitName, statMatchers] of Object.entries(exports.statUnits)) { -- cgit