diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 20:43:36 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 20:43:36 -0600 |
commit | a9c51ee15186452696bd46c1eccab506cff6286a (patch) | |
tree | ff67e8585840109a97f9ffc1092a32cd5a06eb3d /build | |
parent | d78d095352806fd1e9be4cfc44a0873ca1dce210 (diff) | |
parent | 6ac94af696c827c6dab8231142024a5e255ed802 (diff) | |
download | skyblock-api-a9c51ee15186452696bd46c1eccab506cff6286a.tar.gz skyblock-api-a9c51ee15186452696bd46c1eccab506cff6286a.tar.bz2 skyblock-api-a9c51ee15186452696bd46c1eccab506cff6286a.zip |
Merge branch 'main' of https://github.com/skyblockstats/skyblock-api into main
Diffstat (limited to 'build')
-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; |