From: Joshua Roesslein Date: Wed, 9 Dec 2009 23:45:41 +0000 (-0600) Subject: Fix User.timeline() method. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=36fa0cba4aeef057b10a10b1ed32d731a71844f8;p=tweepy.git Fix User.timeline() method. This method now properly returns the user timeline specifed by User.id --- 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)