aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat-1 <github@matdoes.dev>2021-03-01 02:27:44 +0000
committermat-1 <github@matdoes.dev>2021-03-01 02:27:44 +0000
commit6ac94af696c827c6dab8231142024a5e255ed802 (patch)
tree0c9cde04077c090ba3196e06d49f2fd52ba4502f
parent5c2228adaf07c658824f8df51bf976f61902b7fc (diff)
downloadskyblock-api-6ac94af696c827c6dab8231142024a5e255ed802.tar.gz
skyblock-api-6ac94af696c827c6dab8231142024a5e255ed802.tar.bz2
skyblock-api-6ac94af696c827c6dab8231142024a5e255ed802.zip
Compiled TS into JS
-rw-r--r--build/cleaners/skyblock/stats.js2
-rw-r--r--build/database.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/build/cleaners/skyblock/stats.js b/build/cleaners/skyblock/stats.js
index 09941a4..d805683 100644
--- a/build/cleaners/skyblock/stats.js
+++ b/build/cleaners/skyblock/stats.js
@@ -7,7 +7,7 @@ const statCategories = {
'fishing': ['items_fished_', 'items_fished'],
'auctions': ['auctions_'],
'collection': ['collection_'],
- 'races': ['_best_time'],
+ 'races': ['_best_time', '_best_time_2'],
'misc': null // everything else goes here
};
function categorizeStat(statNameRaw) {
diff --git a/build/database.js b/build/database.js
index e7f7385..d30b161 100644
--- a/build/database.js
+++ b/build/database.js
@@ -85,6 +85,10 @@ async function fetchAllLeaderboardsCategoriezed() {
categorizedLeaderboards[category] = [];
categorizedLeaderboards[category].push(leaderboard);
}
+ // move misc to end by removing and readding it
+ const misc = categorizedLeaderboards.misc;
+ delete categorizedLeaderboards.misc;
+ categorizedLeaderboards.misc = misc;
return categorizedLeaderboards;
}
exports.fetchAllLeaderboardsCategoriezed = fetchAllLeaderboardsCategoriezed;