def list_melons(): """This is the big page showing all the melons has to offer""" melons = model.get_melons() print(session,"########") if "user" in session and session["logged_in"] is True: customer = model.get_customer_by_email(str(session["user"])) flash("Welcome, %s %s" % (customer.givenname, customer.surname)) else: flash("That is an invalid login.") return render_template("all_melons.html", melon_list = melons)
def list_melons(): """This is the big page showing all the melons ubermelon has to offer""" melons = model.get_melons() return render_template("all_melons.html", melon_list = melons)
def list_melons(): """This is the big page showing all the melons ubermelon has to offer""" melons = model.get_melons() return render_template("all_melons.html", melon_list=melons)