playlists/reports.py
def play_count_key(item):
    """given a playlist record, generate a key to tally play counts with.

    For example: Talking Book,Stevie Wonder,Motown
    """
    key_parts = []
    for key in ['album_title', 'artist_name', 'label']:
        stub = as_encoded_str(_get_entity_attr(item, key, ''))
        stub = stub.lower()
        key_parts.append(stub)
    return ','.join(key_parts)
given a playlist record, generate a key to tally play counts with.

    For example: Talking Book,Stevie Wonder,Motown
    
given a playlist record, generate a key to tally play counts with.
For example: Talking Book,Stevie Wonder,Motown
given a playlist record generate a key to tally play counts with . For example : Talking Book Stevie Wonder Motown
def play_count_key(item):
    key_parts = []
    for key in ['album_title', 'artist_name', 'label']:
        stub = as_encoded_str(_get_entity_attr(item, key, ''))
        stub = stub.lower()
        key_parts.append(stub)
    return ','.join(key_parts)
def play_count_key ( item ) : key_parts = [ ] for key in [ 'album_title' , 'artist_name' , 'label' ] : stub = as_encoded_str ( _get_entity_attr ( item , key , '' ) ) stub = stub . lower ( ) key_parts . append ( stub ) return ',' . join ( key_parts )
given a playlist record, generate a key to tally play counts with.
given a playlist record generate a key to tally play counts with .
"""given a playlist record, generate a key to tally play counts with.

    For example: Talking Book,Stevie Wonder,Motown
    """
item