Exemplo n.º 1
0
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')
Exemplo n.º 2
0
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')