(cursor, project_id)
return project
Use information from source database to more_like_this projects from target database.
Use information from source database to more_like_this projects from target database.
Use information from source database to more_like_this projects from target database .
def get_project(cursor, project_id):
    """
    Use information from source database to more_like_this projects from target database.
    """
    cursor.execute(f"SELECT * FROM engine_project WHERE id={project_id}")
    colnames = [col[0] for col in cursor.description]
    row = cursor.fetchone()
    project_dict = column_names(row=row, colnames=colnames)

    project = Project.objects.filter(uid=project_dict['uid']).first()

    return project
def get_project ( cursor , project_id ) : cursor . execute ( f"SELECT * FROM engine_project WHERE id={project_id}" ) colnames = [ col [ 0 ] for col in cursor . description ] row = cursor . fetchone ( ) project_dict = column_names ( row = row , colnames = colnames ) project = Project . objects . filter ( uid = project_dict [ 'uid' ] ) . first ( ) return project