Example #1
0
def renderPines():
    return render_template('pines.html',
                           breakfast=scrape.allMealItems('Pines', 'Breakfast'),
                           lunch=scrape.allMealItems('Pines', 'Lunch'),
                           dinner=scrape.allMealItems('Pines', 'Dinner'),
                           ratings=getRatingsFromHall('Pines'),
                           diningHall='Pines')
def renderCV():
    #items variable pulls to scrape.py
    #ratings variable pulls from ratings.py and ratings dictionary
    print "This is renderCV()"
    return render_template('CV.html', breakfast = scrape.allMealItems('Canyon Vista', 'Breakfast'),
                           lunch = scrape.allMealItems('Canyon Vista', 'Lunch'),
                           dinner = scrape.allMealItems('Canyon Vista', 'Dinner'),
                           ratings = getRatingsFromHall('Canyon Vista'),
                           diningHall = 'Canyon Vista')
Example #3
0
def renderCV():
    #items variable pulls to scrape.py
    #ratings variable pulls from ratings.py and ratings dictionary
    print "This is renderCV()"
    return render_template('CV.html',
                           breakfast=scrape.allMealItems(
                               'Canyon Vista', 'Breakfast'),
                           lunch=scrape.allMealItems('Canyon Vista', 'Lunch'),
                           dinner=scrape.allMealItems('Canyon Vista',
                                                      'Dinner'),
                           ratings=getRatingsFromHall('Canyon Vista'),
                           diningHall='Canyon Vista')
def renderPines():
    return render_template('pines.html', breakfast = scrape.allMealItems('Pines', 'Breakfast'),
                           lunch = scrape.allMealItems('Pines', 'Lunch'),
                           dinner = scrape.allMealItems('Pines', 'Dinner'),
                           ratings = getRatingsFromHall('Pines'),
                           diningHall = 'Pines')