result.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:Url 作者: beiruan 项目源码 文件源码
def result():
    resultdb = app.config['resultdb']
    project = request.args.get('project')
    offset = int(request.args.get('offset', 0))
    limit = int(request.args.get('limit', 20))

    count = resultdb.count(project)
    results = list(resultdb.select(project, offset=offset, limit=limit))

    return render_template(
        "result.html", count=count, results=results,
        result_formater=result_dump.result_formater,
        project=project, offset=offset, limit=limit, json=json
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号