diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-07-23 12:15:20 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-07-23 12:15:20 +0200 |
| commit | 6bc7063c68be760a52f621d2e3d77c89af21852b (patch) | |
| tree | 0bc472cd6dc88bcd444ee753ac939b5542ceb6b9 /wrms.go | |
| parent | 26f0033ebb5f8e7c204a042709e3dfa885eac868 (diff) | |
| download | WRMS-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |
