コード例 #1
0
def jeff19():
    if request.method == 'POST' and model.is_jeff():
        #data = dict(request.form)
        #print(data)
        return render_template('jeff/jeff19.html')
    else:
        return "You should not be here"
コード例 #2
0
def police():
    if request.method == 'POST' and model.is_jeff():
        #data = dict(request.form)
        #print(data)
        msg = "Remember to press Enter to Send"
        return render_template('jeff/police.html', message=msg)
    else:
        return "You should not be here"
コード例 #3
0
def chest():
    if request.method == 'POST' and model.is_jeff():
        #data = dict(request.form)
        #print(data)
        msg = "After entering your code, press Enter on your keyboard"
        return render_template('jeff/chestlock.html', message=msg)
    else:
        return "You should not be here"
コード例 #4
0
def chest_code():
    if request.method == 'POST' and model.is_jeff():
        data = dict(request.form)
        #print(data)
        if (data['code'] == 'A5V9M12'):
            return render_template('/jeff/chest_success.html')
        else:
            msg = "That's not the right code. Perhaps Taylor can help?"
            return render_template('/jeff/chestlock.html', message=msg)
    else:
        return "You should not be here"
コード例 #5
0
def solve():
    if request.method == 'POST' and model.is_jeff():
        data = dict(request.form)
        #print(data)
        if (data['name'].lower() == 'michael'):
            return render_template('/jeff/success.html')
        else:
            msg = "The police already know that person has an alibi. Try again. Perhaps Taylor can help?"
            return render_template('/jeff/police.html', message=msg)
    else:
        return "You should not be here"