Beispiel #1
0
def rcmd_user(request):
    '''获取推荐列表'''
    users = logics.rcmd_users(request.uid)
    result = [user.to_dict() for user in users]
    return render_json(result)
Beispiel #2
0
def get_rcmd_users(request):
    users = logics.rcmd_users(request.user)
    data = [user.to_dict() for user in users]  # 封装要返回的数据
    return render_json(data)