fix: get all favorite tracks endpoint

This commit is contained in:
cwilvx
2024-08-18 06:56:51 +03:00
parent 7852be5e3f
commit b4bc9cb3cd
6 changed files with 17 additions and 7 deletions
+4
View File
@@ -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