Example #1
0
def rcmd_users(request):
    '''推荐用户接口'''
    users = logics.rcmd(request.uid)
    # rcmd_data = [user.to_dict() for user in users]
    rcmd_data = []
    for user in users:
        d = user.to_dict()
        d['describe'] = user.profile.describe
        rcmd_data.append(d)
    return render_json(rcmd_data)
Example #2
0
def rcmd_users(request):
    '''获取推荐用户'''
    users = logics.rcmd(request.uid)  # 获取推荐用户的id
    users_data = [user.to_dict() for user in users]  # 遍历推荐用户的信息列表
    return render_json(users_data)
Example #3
0
def rcmd_users(request):
    '''获取推荐用户列表'''
    users = logics.rcmd(request.user)
    user_info = [user.to_dict() for user in users]
    return render_json(user_info)
Example #4
0
def rcmd_users(request):
    # 拿到过滤用户列表
    users = logics.rcmd(request.user)
    result = [user.to_dict() for user in users]
    return render_json(result)
Example #5
0
def rcmd_user(request):
    """推荐用户接口"""
    users = logics.rcmd(request.uid)
    user_data = [user.to_dict() for user in users]
    return render_json(data=user_data)
Example #6
0
def rcmd_users(request):
    '''推荐用户'''
    users = logics.rcmd(request.uid)
    result = [user.to_dict() for user in users]
    return render_json(result)
Example #7
0
def rcmd_users(request):
    '''获取推荐用户'''
    users = logics.rcmd(request.uid)
    users_data = [user.to_dict(exclude=['phonenum']) for user in users]
    return render_json(users_data)
Example #8
0
def rcmd_users(request):
    '''推荐用户接口'''
    users = logics.rcmd(request.uid)
    rcmd_data = [user.to_dict() for user in users]
    return render_json(rcmd_data)
Example #9
0
def get_rcmd_users(request):
    '''获取推荐用户'''
    users = logics.rcmd(request.user)
    result = [user.to_dict('vip_id', 'vip_expired') for user in users]
    return render_json(result)
Example #10
0
def ger_rcmd_users(request):
    '''获取推荐用户'''
    users = logics.rcmd(request.user)
    result = [user.to_dict() for user in users]
    return render_json(data=result)
Example #11
0
def rcmd_users(request):
    #获取推荐列表
    users=logics.rcmd(request.user)
    data=[user.to_dict() for user in users]
    return render_json(data)