Exemplo n.º 1
0
def comment_manage():
    comment = Comment()
    result = comment.find_all_comment(0, 10)
    total = math.ceil(comment.get_total_count() / 10)
    return render_template('admin-comment.html',
                           result=result,
                           page=1,
                           total=total,
                           type='no')
Exemplo n.º 2
0
def comment_cl(page):
    start = (page - 1) * 10
    comment = Comment()
    result = comment.find_all_comment(start, 10)
    total = math.ceil(comment.get_total_count() / 10)
    return render_template('admin-blog.html',
                           result=result,
                           page=page,
                           total=total,
                           type='no')