Skip to content

Commit

Permalink
Fix User.timeline() method.
Browse files Browse the repository at this point in the history
This method now properly returns the user timeline specifed by User.id
  • Loading branch information
joshthecoder committed Dec 9, 2009
1 parent fdb8c69 commit 36fa0cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -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]
=====================
Expand Down
6 changes: 3 additions & 3 deletions tweepy/models.py
Expand Up @@ -36,16 +36,16 @@ def favorite(self):
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)
Expand Down

0 comments on commit 36fa0cb

Please sign in to comment.