mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix: get all favorite tracks endpoint
This commit is contained in:
@@ -225,6 +225,10 @@ class FavoritesTable(Base):
|
||||
res = result.fetchall()
|
||||
|
||||
if start == 0:
|
||||
# if limit == -1, return all
|
||||
if limit == -1:
|
||||
limit = len(res)
|
||||
|
||||
return res[:limit], len(res)
|
||||
|
||||
return res, -1
|
||||
|
||||
Reference in New Issue
Block a user