aboutsummaryrefslogtreecommitdiff
path: root/wrms.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-23 12:15:20 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-23 12:15:20 +0200
commit6bc7063c68be760a52f621d2e3d77c89af21852b (patch)
tree0bc472cd6dc88bcd444ee753ac939b5542ceb6b9 /wrms.go
parent26f0033ebb5f8e7c204a042709e3dfa885eac868 (diff)
downloadWRMS-6bc7063c68be760a52f621d2e3d77c89af21852b.tar.gz
WRMS-6bc7063c68be760a52f621d2e3d77c89af21852b.zip
show votes and the time bonus in the song details
Diffstat (limited to 'wrms.go')
-rw-r--r--wrms.go4
1 files changed, 2 insertions, 2 deletions
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 {