def get(self): username = self.current_user users = yield gen.maybe_future(Following.list_following(username)) followings = list() if users: ids = [user.following_id for user in users] users = yield gen.maybe_future(User.get_multi(*ids)) followings = [user.information() for user in users] raise gen.Return({ 'followings': followings, 'total': len(followings), })