try: fix all fav tracks order

This commit is contained in:
cwilvx
2024-10-21 10:09:49 +03:00
parent aea8c15f6f
commit a26373669d
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -221,7 +221,9 @@ class FavoritesTable(Base):
result = cls.execute(
select(cls)
# .select_from(join(table, cls, field == cls.hash))
.where(and_(cls.type == type, cls.userid == get_current_userid())).offset(
.where(and_(cls.type == type, cls.userid == get_current_userid()))
.order_by(cls.timestamp.desc())
.offset(
start
)
# INFO: If start is 0, fetch all so we can get the total count