def view_bucket_list(): '''A method that returns the route of viewbucketlist in the html. ''' prompt = "You currently have no bucketlists on the bucket list," prompt += " press the create new bucket list button to create a new bucket!" if request.method == "POST": return redirect(url_for('create_bucket_list')) bucket_items = BucketList().view_bucket() name_of_user = Users().users[Users.get_id()].user_name.upper() if name_of_user.endswith('s'): name_of_user += "'" else: name_of_user += "'s" return render_template("ViewBucketList.html", bucket_items=bucket_items, prompt=prompt, name_of_user=name_of_user)