aboutsummaryrefslogtreecommitdiffstats
path: root/modern.go
diff options
context:
space:
mode:
Diffstat (limited to 'modern.go')
-rw-r--r--modern.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern.go b/modern.go
index 9106123..45c92bd 100644
--- a/modern.go
+++ b/modern.go
@@ -94,10 +94,10 @@ func (store *SqlStore) TrackScrobble(r *http.Request) (ApiResponse, error) {
fmt.Printf("%v\n", err)
return struct{}{}, err
} else {
- scrobbles := parseScrobbles(r.Form, session)
+ scrobbles, ignored := parseScrobbles(r.Form, session)
store.PutScrobbles(scrobbles)
return Scrobbles{Scrobbles: scrobbles,
- Attrs: Attrs{1, 0}}, nil
+ Attrs: Attrs{len(scrobbles), ignored}}, nil
}
}