return scrobbles in sorted order
This commit is contained in:
parent
fd900837fa
commit
db3d4ed97b
1 changed files with 1 additions and 2 deletions
|
@ -53,8 +53,7 @@ def _iter_scrobbles():
|
|||
|
||||
@lru_cache(1)
|
||||
def get_scrobbles():
|
||||
# TODO assert sorted?
|
||||
return list(_iter_scrobbles())
|
||||
return list(sorted(_iter_scrobbles(), key=lambda s: s.dt))
|
||||
|
||||
|
||||
def test():
|
||||
|
|
Loading…
Add table
Reference in a new issue