diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 21:24:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 21:24:11 -0500 |
commit | c31e4fe77467486dc03226ebdad4c0bc67e1d715 (patch) | |
tree | 03cc94dd7155eeb6a522ebd7e7f65eff86ef6e09 /build/cleaners/skyblock/stats.js | |
parent | 52907cf2056cd434dad7270475fc9e4a532c04fa (diff) | |
download | skyblock-api-c31e4fe77467486dc03226ebdad4c0bc67e1d715.tar.gz skyblock-api-c31e4fe77467486dc03226ebdad4c0bc67e1d715.tar.bz2 skyblock-api-c31e4fe77467486dc03226ebdad4c0bc67e1d715.zip |
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
Diffstat (limited to 'build/cleaners/skyblock/stats.js')
-rw-r--r-- | build/cleaners/skyblock/stats.js | 3 |
1 files changed, 2 insertions, 1 deletions
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)) { |