예제 #1
0
def api_get_requests():
    total = Request.count_all()
    page = Page(total, _get_page_index())
    requests = Request.find_by('order by id desc limit ?,?', page.offset, page.limit)
    return dict(requests=content_escape(requests), page=page)
예제 #2
0
파일: urls.py 프로젝트: akz747/NagaScan
def api_get_requests():
    total = Request.count_all()
    page = Page(total, _get_page_index())
    requests = Request.find_by('order by id desc limit ?,?', page.offset, page.limit)
    return dict(requests=content_escape(requests), page=page)