mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 11:42:16 +00:00
duplicates in list_albums newest
This commit is contained in:
parent
7417766ac5
commit
8014c7b2df
@ -90,7 +90,7 @@ def album_list():
|
||||
),
|
||||
)
|
||||
elif ltype == "newest":
|
||||
query = query.order_by(desc(Folder.created))
|
||||
query = query.order_by(desc(Folder.created)).distinct()
|
||||
elif ltype == "highest":
|
||||
query = query.order_by(lambda f: desc(avg(f.ratings.rating)))
|
||||
elif ltype == "frequent":
|
||||
|
Loading…
Reference in New Issue
Block a user