def admin_results(): candidate_list = select_all_candidates(conn) return render_template('admin.html', candidates = candidate_list)
def select(): candidate_list = select_all_candidates(conn) return render_template('vote.html',candidate_list = candidate_list)
def confirmation(): candidate_list = select_all_candidates(conn) return render_template("index.html",candidate_list = candidate_list)
def disp_progress(): output = select_all_candidates(conn) return request.data
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"])