rewrite remove duplicates to support removing duplicates in albums tracks efficiently

+ remove flags added to client settings page
+ misc
This commit is contained in:
mungai-njoroge committed 2023-08-29 20:04:30 +03:00
1 parent 26e36ba36f
commit 13475b0630
16 files changed
+118 -95

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ class TrackStore:
Returns all tracks matching the given album hash.
"""
tracks = [t for t in cls.tracks if t.albumhash == album_hash]
return remove_duplicates(tracks)
return remove_duplicates(tracks, is_album_tracks=True)
@classmethod
def get_tracks_by_artisthash(cls, artisthash: str):