admin.py 文件源码

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

项目:picoCTF 作者: royragsdale 项目源码 文件源码
def get_api_exceptions(result_limit=50, sort_direction=pymongo.DESCENDING):
    """
    Retrieve api exceptions.

    Args:
        result_limit: the maximum number of exceptions to return.
        sort_direction: pymongo.ASCENDING or pymongo.DESCENDING
    """

    db = api.common.get_conn()

    results = db.exceptions.find({"visible": True}).sort([("time", sort_direction)]).limit(result_limit)
    return list(results)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号