Added Game played when adding to que
This commit is contained in:
@@ -36,6 +36,7 @@ func Reset() {
|
|||||||
func AddLatestToQue() {
|
func AddLatestToQue() {
|
||||||
if lastFetched.Path != "" {
|
if lastFetched.Path != "" {
|
||||||
currentSong = len(songQue)
|
currentSong = len(songQue)
|
||||||
|
db.AddGamePlayed(lastFetched.GameId)
|
||||||
songQue = append(songQue, lastFetched)
|
songQue = append(songQue, lastFetched)
|
||||||
lastFetched = models.SongData{}
|
lastFetched = models.SongData{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user