Пример #1
0
def compare_authors():
    is_resp = False
    rank = []

    if request.method == 'POST':
        is_resp = True
        rank = compare_rank.compare_rank(request.form['id'])

    return render_template('compare_authors.html', is_resp=is_resp, rank_list=rank)
Пример #2
0
def compare(id):
    rank = compare_rank.compare_rank(id.replace('+', '/'))

    return render_template('compare.html', data=rank)