def get(self): params = self.check_login("/cron/front") params['house_daily_items'] = getMNHouseSessionDaily(5) params['current_bills'] = getCurrentBills(5) bill_counts = getBillCounts() params['top'] = bill_counts[:10] self.cache_render('front_page', main_page, **params)
def get(self): params=self.check_login("/cron/front") params['house_daily_items']=getMNHouseSessionDaily(5) params['current_bills']=getCurrentBills(5) bill_counts=getBillCounts() params['top']=bill_counts[:10] self.cache_render('front_page',main_page, **params)
def get(self): params = self.check_login("/") page = getFromCache('front_page') if not page: params['house_daily_items'] = getMNHouseSessionDaily(5) params['current_bills'] = getCurrentBills(5) bill_counts = getBillCounts() params['top'] = bill_counts[:10] self.cache_render('front_page', main_page, **params) else: self.write(page)
def get(self): params=self.check_login("/") page=getFromCache('front_page') if not page: params['house_daily_items']=getMNHouseSessionDaily(5) params['current_bills']=getCurrentBills(5) bill_counts=getBillCounts() params['top']=bill_counts[:10] self.cache_render('front_page',main_page, **params) else: self.write(page)