From 6ac94af696c827c6dab8231142024a5e255ed802 Mon Sep 17 00:00:00 2001 From: mat-1 Date: Mon, 1 Mar 2021 02:27:44 +0000 Subject: Compiled TS into JS --- build/cleaners/skyblock/stats.js | 2 +- build/database.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'build') 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; -- cgit