Exemplo n.º 1
0
def call_output():
    # gets the city variable from the linking page
    destination = request.args.get('ID')

    hotel_names, hotel_ratings = rbh.retrieve_best_hotels2(destination)
    return render_template("output.html",
                           destination=destination, map_name='map4.html',
                           ratings=zip(hotel_ratings, hotel_names))
Exemplo n.º 2
0
def return_best_hotels():
    hotel_names, hotel_ratings = rbh.retrieve_best_hotels2('Phoenix')
    return 'howdy\n'+('-').join(hotel_names)