def index(self, *args, **kwargs): tags = SystemInfoModel.getAllTagList() tagList = [] for tag in tags: if tag['count'] > 12: tag['size'] = 12 else: tag['size'] = tag['count'] tagList.append(tag) return self.renderTemplate('tags/index.html', tagList=tagList)
def index(self, *args, **kwargs): tags = SystemInfoModel.getAllTagList() tagList = [] for tag in tags: if tag['count'] > 12: tag['size'] = 12 else: tag['size'] = tag['count'] tagList.append(tag) return self.renderTemplate('tags/index.html', tagList=tagList)
def testReq(): tagList = SystemInfoModel.getAllTagList()[:5] shared.tagList = tagList