mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 10:54:42 +00:00
create a base class for all migration
+ save folder to playlist, sorting by last_mod
This commit is contained in:
1 parent
782cfc8da8
commit
9c9a187083
5 files changed
+48
-20
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user