(project_id, treenode_id)
return rows[0]
Return a list with information on the passed in node. It has the form:

    [ID, parent ID, x, y, z, confidence, radius, skeleton_id, edition_time, user_id]

    The returned edition time is an epoch number.
Return a list with information on the passed in node. It has the form:
Return a list with information on the passed in node . It has the form :
def _compact_detail(project_id, treenode_id):
    """
    Return a list with information on the passed in node. It has the form:

    [ID, parent ID, x, y, z, confidence, radius, skeleton_id, edition_time, user_id]

    The returned edition time is an epoch number.
    """
    cursor = connection.cursor()
    cursor.execute("""
        SELECT id, parent_id, location_x, location_y, location_z, confidence,
        radius, skeleton_id, EXTRACT(EPOCH FROM edition_time), user_id
        FROM treenode
        WHERE id=%(treenode_id)s
        AND project_id=%(project_id)s
    """, {
        'project_id': project_id,
        'treenode_id': treenode_id
    })

    rows = cursor.fetchall()
    if len(rows) == 0:
        raise ValueError(f"Could not find treenode with ID {treenode_id}")
    if len(rows) > 1:
        raise ValueError(f"Found {len(rows)} treenodes with ID {treenode_id}, expected one")

    return rows[0]
def _compact_detail ( project_id , treenode_id ) : cursor = connection . cursor ( ) cursor . execute ( """
        SELECT id, parent_id, location_x, location_y, location_z, confidence,
        radius, skeleton_id, EXTRACT(EPOCH FROM edition_time), user_id
        FROM treenode
        WHERE id=%(treenode_id)s
        AND project_id=%(project_id)s
    """ , { 'project_id' : project_id , 'treenode_id' : treenode_id } ) rows = cursor . fetchall ( ) if len ( rows ) == 0 : raise ValueError ( f"Could not find treenode with ID {treenode_id}" ) if len ( rows ) > 1 : raise ValueError ( f"Found {len(rows)} treenodes with ID {treenode_id}, expected one" ) return rows [ 0 ]