mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
Merge branch 'master' into integrate-topbar
This commit is contained in:
@@ -21,8 +21,7 @@ TrackExistsInPlaylist = exceptions.TrackExistsInPlaylist
|
|||||||
@playlist_bp.route("/playlists", methods=["GET"])
|
@playlist_bp.route("/playlists", methods=["GET"])
|
||||||
def get_all_playlists():
|
def get_all_playlists():
|
||||||
playlists = [
|
playlists = [
|
||||||
serializer.Playlist(p, construct_last_updated=False)
|
serializer.Playlist(p, construct_last_updated=False) for p in api.PLAYLISTS
|
||||||
for p in api.PLAYLISTS
|
|
||||||
]
|
]
|
||||||
playlists.sort(
|
playlists.sort(
|
||||||
key=lambda p: datetime.strptime(p.lastUpdated, "%Y-%m-%d %H:%M:%S"),
|
key=lambda p: datetime.strptime(p.lastUpdated, "%Y-%m-%d %H:%M:%S"),
|
||||||
|
|||||||
Reference in New Issue
Block a user