mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-29 21:27:05 +02:00
scrobblerlog: fixed listen export progress
This commit is contained in:
parent
ed191d2f15
commit
b104c2bc42
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ func (b *ScrobblerLogBackend) ExportListens(oldestTimestamp time.Time, results c
|
||||||
listens = append(listens, recordToListen(record, client))
|
listens = append(listens, recordToListen(record, client))
|
||||||
}
|
}
|
||||||
sort.Sort(listens.NewerThan(oldestTimestamp))
|
sort.Sort(listens.NewerThan(oldestTimestamp))
|
||||||
progress <- models.Progress{Elapsed: int64(len(listens))}.Complete()
|
progress <- models.Progress{Total: int64(len(listens))}.Complete()
|
||||||
results <- models.ListensResult{Items: listens}
|
results <- models.ListensResult{Items: listens}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue