return scrobbles in sorted order

This commit is contained in:
Dima Gerasimov 2019-11-14 22:29:24 +00:00
parent fd900837fa
commit db3d4ed97b

View file

@ -53,8 +53,7 @@ def _iter_scrobbles():
@lru_cache(1) @lru_cache(1)
def get_scrobbles(): def get_scrobbles():
# TODO assert sorted? return list(sorted(_iter_scrobbles(), key=lambda s: s.dt))
return list(_iter_scrobbles())
def test(): def test():