From 36fa0cba4aeef057b10a10b1ed32d731a71844f8 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Wed, 9 Dec 2009 17:45:41 -0600 Subject: [PATCH] Fix User.timeline() method. This method now properly returns the user timeline specifed by User.id --- CHANGELOG | 1 + tweepy/models.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index e6c8308..6fd1d16 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -24,6 +24,7 @@ during upgrade will be listed here. - send_direct_message() now accepts either a user/screen_name/user_id for recipient of DM + tweepy.debug() enables httplib debug mode + New Sphinx documentation (Thanks Kumar!) in doc/ ++ Fix User.timeline() to return correct timeline 1.2 -> 1.3 [Current release] ===================== diff --git a/tweepy/models.py b/tweepy/models.py index 609730e..27be627 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -36,16 +36,16 @@ class Status(Model): class User(Model): def timeline(self, **kargs): - return self._api.user_timeline(**kargs) + return self._api.user_timeline(user_id=self.id, **kargs) def mentions(self, **kargs): return self._api.mentions(**kargs) def friends(self, **kargs): - return self._api.friends(self.id, **kargs) + return self._api.friends(user_id=self.id, **kargs) def followers(self, **kargs): - return self._api.followers(self.id, **kargs) + return self._api.followers(user_idself.id, **kargs) def follow(self): self._api.create_friendship(user_id=self.id) -- 2.25.1