def getFeedResource(self): # feedResUpdateTime = self.getFeedResUpdateTime() rs = self.db.select(queryStmt('from feed_info')) return [ FeedRes(e[1], e[2], e[3], e[0], FeedResUpdateTime.get(e[0]) ) for e in rs ]
def getFeeds(self, size=1000): rs = self.db.select(queryStmt('from feeds order by id desc limit '+str(size))) return [ FeedItem(r[2], r[4], r[3], r[1]) for r in rs ]
def getFilterPattern(self): rs = self.db.select(queryStmt('from reason_of_filtered')) return [ FilterReason(e[1], e[2], e[3], e[0]) for e in rs ]