diff options
-rw-r--r-- | build/cleaners/skyblock/stats.js | 2 | ||||
-rw-r--r-- | build/database.js | 4 |
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; |