def get_table():
    """Provides table of scheduling block instance metadata for use with AJAX
    tables"""
    response = dict(blocks=[])
    block_ids = DB.get_sched_block_instance_ids()
    for index, block_id in enumerate(block_ids):
        block = DB.get_block_details([block_id]).__next__()
        info = [
            index,
            block['id'],
            block['sub_array_id'],
            len(block['processing_blocks'])
        ]
        response['blocks'].append(info)
    return response, HTTPStatus.OK
def get_table ( ) : response = dict ( blocks = [ ] ) block_ids = DB . get_sched_block_instance_ids ( ) for index , block_id in enumerate ( block_ids ) : block = DB . get_block_details ( [ block_id ] ) . __next__ ( ) info = [ index , block [ 'id' ] , block [ 'sub_array_id' ] , len ( block [ 'processing_blocks' ] ) ] response [ 'blocks' ] . append ( info ) return response , HTTPStatus . OK
Provides table of scheduling block instance metadata for use with AJAX
    tables