示例#1
0
文件: block.py 项目: 18231044/webb
def f_classify(page):
    file = File()
    start = (page-1) *10
    result = file.find_limit_with_users(start, 10)
    total = math.ceil(file.get_total_file_count() / 10)
    return render_template('block2.html', result=result, page=page, total=total, type='share')
示例#2
0
文件: block.py 项目: 18231044/webb
def file():
    file = File()
    result = file.find_limit_with_users(0, 10)
    total = math.ceil(file.get_total_file_count() / 10)
    return render_template('block2.html', result=result, page=1, total=total, type='share')