def result(): userdata = request.form model.add_points(userdata) house = model.sort_user(userdata) print("You have been sorted into " + house) crest = model.pick_crest(house) return render_template('results.html', house=house, crest=crest)
def q10(): userdata = request.form model.add_points(userdata) return render_template('q10.html')
def q4(): userdata = request.form # userdata = formopener.dict_from(request.form) model.add_points(userdata) return render_template('q4.html')