fix: get all favorite tracks endpoint

This commit is contained in:
cwilvx committed 2024-08-18 06:56:51 +03:00
1 parent 7852be5e3f
commit b4bc9cb3cd
6 files changed
+17 -7

No files matched your search

+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