@app.get('/recommendation')
async def recommend(request):
    '\n    Gets recommendations for user\n    Expects args in query string form -> user=x&count=n\n    Returns json object {posts, unvoted, user, meta}\n    '
    args = request.raw_args
    recommender = Recommender(app.predictor, request['accessor'], read_config())
    posts = (await recommender.recommend_for(args['user'], int(args.get('count', 10))))
    return json(posts)
Gets recommendations for user
Expects args in query string form -> user=x&count=n
Returns json object {posts, unvoted, user, meta}
@app.get('/recommendation')
async def recommend(request):
    '\n    Gets recommendations for user\n    Expects args in query string form -> user=x&count=n\n    Returns json object {posts, unvoted, user, meta}\n    '
    args = request.raw_args
    recommender = Recommender(app.predictor, request['accessor'], read_config())
    posts = (await recommender.recommend_for(args['user'], int(args.get('count', 10))))
    return json(posts)