def addAll(self): ct = 0 cap = 5 for rest in scraper.get_all(): ct += RestaurantMaker().make(rest) if ct > cap: self.redirect('/') return
def get(self): restaurants_query = rweekfinder.Restaurant.all().order('-date') for rest in scraper.get_all(): self.make(rest) self.redirect('/');