Merge branch 'master' into integrate-topbar

This commit is contained in:
Mungai Geoffrey
2022-04-14 11:40:32 +03:00
committed by GitHub
+1 -2
View File
@@ -21,8 +21,7 @@ TrackExistsInPlaylist = exceptions.TrackExistsInPlaylist
@playlist_bp.route("/playlists", methods=["GET"])
def get_all_playlists():
playlists = [
serializer.Playlist(p, construct_last_updated=False)
for p in api.PLAYLISTS
serializer.Playlist(p, construct_last_updated=False) for p in api.PLAYLISTS
]
playlists.sort(
key=lambda p: datetime.strptime(p.lastUpdated, "%Y-%m-%d %H:%M:%S"),