def add_entry(): userId = request.form['id'] userPasswd = request.form['passwd'] for member in Member.all(): if userId == member.getId(): return "failed" member = Member(userId=userId, userPasswd=userPasswd) member.put() return "OK"
def show_entries(): members = Member.all() return render_template("practice.html", members=members)