예제 #1
0
def admin_results():
    candidate_list = select_all_candidates(conn)
    return render_template('admin.html', candidates = candidate_list)
예제 #2
0
def select():
    candidate_list = select_all_candidates(conn)
    return render_template('vote.html',candidate_list = candidate_list)
예제 #3
0
def confirmation():
    candidate_list = select_all_candidates(conn)
    return render_template("index.html",candidate_list = candidate_list)
예제 #4
0
def disp_progress():
    output = select_all_candidates(conn)
    return request.data
예제 #5
0
def user_results():
    candidate_list = select_all_candidates(conn)
    result = select_user(conn,voter_id)
    result = select_candidate(conn,int(result["candidate_id"]))
    return render_template('user-results.html',candidates = candidate_list,cand_name=result["name"])