create a base class for all migration

+ save folder to playlist, sorting by last_mod
This commit is contained in:
mungai-njoroge
2023-07-31 16:44:37 +03:00
parent 782cfc8da8
commit 9c9a187083
5 changed files with 48 additions and 20 deletions
+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: