aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/stats.js
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:10:02 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:10:02 -0600
commitdfd4016d4ea907719d0b4edf28e4b9529534870c (patch)
tree4f96fb0e54a6bdea021fd9eb1cbc391d3accdf30 /build/cleaners/skyblock/stats.js
parentb69690f7cf2405bc817082cce45185fb389d0bb9 (diff)
downloadskyblock-api-dfd4016d4ea907719d0b4edf28e4b9529534870c.tar.gz
skyblock-api-dfd4016d4ea907719d0b4edf28e4b9529534870c.tar.bz2
skyblock-api-dfd4016d4ea907719d0b4edf28e4b9529534870c.zip
make /leaderboards include categories
Diffstat (limited to 'build/cleaners/skyblock/stats.js')
-rw-r--r--build/cleaners/skyblock/stats.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/cleaners/skyblock/stats.js b/build/cleaners/skyblock/stats.js
index 80686c1..09941a4 100644
--- a/build/cleaners/skyblock/stats.js
+++ b/build/cleaners/skyblock/stats.js
@@ -1,11 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.cleanProfileStats = void 0;
+exports.cleanProfileStats = exports.categorizeStat = void 0;
const statCategories = {
'deaths': ['deaths_', 'deaths'],
'kills': ['kills_', 'kills'],
'fishing': ['items_fished_', 'items_fished'],
'auctions': ['auctions_'],
+ 'collection': ['collection_'],
'races': ['_best_time'],
'misc': null // everything else goes here
};
@@ -52,6 +53,7 @@ function categorizeStat(statNameRaw) {
name: statNameRaw
};
}
+exports.categorizeStat = categorizeStat;
function cleanProfileStats(data) {
var _a;
// TODO: add type for statsRaw (probably in hypixelApi.ts since its coming from there)