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