diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cleaners/skyblock/stats.ts | 2 | ||||
-rw-r--r-- | src/database.ts | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/cleaners/skyblock/stats.ts b/src/cleaners/skyblock/stats.ts index 0a0c32a..67099af 100644 --- a/src/cleaners/skyblock/stats.ts +++ b/src/cleaners/skyblock/stats.ts @@ -65,7 +65,7 @@ export function categorizeStat(statNameRaw: string): StatCategory { } export const statUnits = { - time: ['_best_time', '_best_time_2', 'fastest_coop_join'], + time: ['_best_time', '_best_time_2', 'fastest_coop_join', 'slowest_coop_join'], date: ['first_join', 'last_save'], coins: ['purse'], leaderboards: ['leaderboards_count', 'top_1_leaderboards_count'] diff --git a/src/database.ts b/src/database.ts index 91f4116..a3df3a2 100644 --- a/src/database.ts +++ b/src/database.ts @@ -212,8 +212,10 @@ function getMemberLeaderboardAttributes(member: CleanMember): StringNumber { if (member.lastSave) data.last_save = member.lastSave - if (member.coopInvitation && member.coopInvitation.acceptedTimestamp && member.coopInvitation?.invitedBy?.uuid !== member.uuid) + if (member.coopInvitation && member.coopInvitation.acceptedTimestamp && member.coopInvitation?.invitedBy?.uuid !== member.uuid) { data.fastest_coop_join = member.coopInvitation.acceptedTimestamp - member.coopInvitation.invitedTimestamp + data.slowest_coop_join = member.coopInvitation.acceptedTimestamp - member.coopInvitation.invitedTimestamp + } return data } @@ -305,7 +307,8 @@ export async function fetchAllMemberLeaderboardAttributes(): Promise<string[]> { 'visited_zones', 'leaderboards_count', 'top_1_leaderboards_count', - 'fastest_coop_join' + 'fastest_coop_join', + 'slowest_coop_join' ] } |