def get(self): page = self.get_int('page', 1) from_id = self.get_int('from_id', 0) tweets = Tweet.get_timeline(page=page, from_id=from_id, user_id=self.current_user.id) return self.render("site/timeline.html", tweets=tweets, cate='me', page=page)
def get(self): page = self.get_int('page', 1) from_id = self.get_int('from_id', 0) tweets = Tweet.get_timeline(page=page, from_id=from_id) return self.render("site/timeline.html", tweets=tweets, cate='public', page=page)
def get(self): page = self.get_int('page', 1) from_id = self.get_int('from_id', 0) tweets = Tweet.get_timeline(page=page, from_id=from_id) return self.send_success_json(object_list=[tweet.to_dict() for tweet in tweets])
def get(self): page = self.get_int('page', 1) from_id = self.get_int('from_id', 0) tweets = Tweet.get_timeline(page=page, from_id=from_id) return self.send_success_json( object_list=[tweet.to_dict() for tweet in tweets])