def API_getAllPlaylists(self): all_playlists = [playlist.to_dict() for playlist in Playlist.get_all()] all_playlists = filter(lambda x:x['name'][0:len(self.ampdbname)] != self.ampdbname,all_playlists) return all_playlists
def API_getAllPlaylists(self): return [playlist.to_dict() for playlist in Playlist.get_all()]