def get(self): e_models = EmailModel.find({'deleted': False}) active_traffic_time = DateTime.get_day(6) offers = Offers.query(active_traffic_time) self.render(e_models=e_models, offers=offers)
def get(self): active_traffic_time = DateTime.get_day(6) offers = Offers.query(active_traffic_time) self.finish(dict(offers=offers))