From 6bc7063c68be760a52f621d2e3d77c89af21852b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 23 Jul 2023 12:15:20 +0200 Subject: show votes and the time bonus in the song details --- wrms.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wrms.go') diff --git a/wrms.go b/wrms.go index f225b2a..c6d6086 100644 --- a/wrms.go +++ b/wrms.go @@ -22,8 +22,8 @@ type Song struct { Album string `json:"album"` Year int `json:"year"` index int `json:"-"` // used by heap.Interface - Upvotes map[uuid.UUID]struct{} `json:"-"` - Downvotes map[uuid.UUID]struct{} `json:"-"` + Upvotes map[uuid.UUID]struct{} `json:"upvotes"` + Downvotes map[uuid.UUID]struct{} `json:"downvotes"` } func NewSong(title, artist, source, uri string) *Song { -- cgit v1.2.3