From 8ed789ba8d12641d9d7c2639b5ea8f5d5d14e36b Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 27 Mar 2022 17:59:42 -0500 Subject: Fix harp leaderboards --- src/database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/database.ts b/src/database.ts index 887facb..51ab5d7 100644 --- a/src/database.ts +++ b/src/database.ts @@ -176,8 +176,8 @@ function getMemberHarpAttributes(member: CleanMember): StringNumber { const harpAttributes: StringNumber = {} for (const song of member.harp.songs) { - harpAttributes[`harp_${song.completions}_completions`] = song.completions - harpAttributes[`harp_${song.perfectCompletions}_perfect_completions`] = song.perfectCompletions + harpAttributes[`harp_${song.id}_completions`] = song.completions + harpAttributes[`harp_${song.id}_perfect_completions`] = song.perfectCompletions } return harpAttributes -- cgit