示例#1
0
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)
示例#2
0
def q10():
    userdata = request.form
    model.add_points(userdata)
    return render_template('q10.html')
示例#3
0
def q4():
    userdata = request.form
    # userdata = formopener.dict_from(request.form)
    model.add_points(userdata)
    return render_template('q4.html')