def getRestaurantFromID(self,id): rm = RestaurantModel() for r in RestaurantModel.all() : if r.key().id() == id : rm = r return rm
def getRestaurants(self): out = {} r = RestaurantModel() for r in RestaurantModel.all() : if r.active : out[r.key().id()] = r.name return out
def getLatestRestaurants(self): out = {} #r = RestaurantModel() for r in RestaurantModel.all() : if r.active : details = r.city + ' , ' + r.state out[r.name.title()] = details.title() return out