create a base class for all migration

+ save folder to playlist, sorting by last_mod
This commit is contained in:
mungai-njoroge committed 2023-07-31 16:44:37 +03:00
1 parent 782cfc8da8
commit 9c9a187083
5 files changed
+48 -20

No files matched your search

+3
View File
@@ -348,6 +348,9 @@ def save_folder_as_folder():
return {"error": "Playlist already exists"}, 409
tracks = TrackStore.get_tracks_in_path(path)
# sort tracks by last_mod
tracks = sorted(tracks, key=lambda t: t.last_mod)
trackhashes = [t.trackhash for t in tracks]
if len(trackhashes) == 0: