diff options
-rw-r--r-- | src/cleaners/skyblock/stats.ts | 2 | ||||
-rw-r--r-- | src/database.ts | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/stats.ts b/src/cleaners/skyblock/stats.ts index d55fdd4..db8f8c9 100644 --- a/src/cleaners/skyblock/stats.ts +++ b/src/cleaners/skyblock/stats.ts @@ -4,7 +4,7 @@ const statCategories: { [ key: string ]: string[] | null } = { // sorted in orde 'fishing': ['items_fished_', 'items_fished'], 'auctions': ['auctions_'], 'collection': ['collection_'], - 'races': ['_best_time'], + 'races': ['_best_time', '_best_time_2'], 'misc': null // everything else goes here } diff --git a/src/database.ts b/src/database.ts index cb99293..334c9b1 100644 --- a/src/database.ts +++ b/src/database.ts @@ -87,6 +87,12 @@ export async function fetchAllLeaderboardsCategoriezed(): Promise<{ [ category: 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 } |