feat: store duration as float, to cater for milliseconds

This commit is contained in:
Deluan
2020-02-20 17:00:56 -05:00
parent 5525145906
commit fc14e346b9
12 changed files with 150 additions and 13 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func (c *PlaylistsController) GetPlaylists(w http.ResponseWriter, r *http.Reques
playlists[i].Name = p.Name
playlists[i].Comment = p.Comment
playlists[i].SongCount = len(p.Tracks)
playlists[i].Duration = p.Duration
playlists[i].Duration = int(p.Duration)
playlists[i].Owner = p.Owner
playlists[i].Public = p.Public
}