Permalink
Browse files

Thanks for completely changing that shot list JSON, Dribbble.

  • Loading branch information...
1 parent 9e4470c commit d6cca0bdcd6846719edadda867f8af1cd0a27fe3 Steve Losh committed Jul 29, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 dribbble/api.py
View
@@ -60,7 +60,7 @@ def shots(self, typ='everyone', page=1, per_page=15):
or ``'debuts'``, depending on the type of shots you want to retrieve.
'''
data = _api('shots/%s', typ, (page, per_page))
- return [Shot(sd) for sd in data]
+ return [Shot(sd) for sd in data['shots']]
def ishots(self, typ='everyone', start_page=1):
@@ -120,12 +120,12 @@ def __init__(self, data, username=None):
def shots(self, page=1, per_page=15):
'''Return shots from this player.'''
data = _api('players/%s/shots', self.id, (page, per_page))
- return [Shot(sd) for sd in data]
+ return [Shot(sd) for sd in data['shots']]
def shots_following(self, page=1, per_page=15):
'''Return shots from players this player is following.'''
data = _api('players/%s/shots/following', self.id, (page, per_page))
- return [Shot(sd) for sd in data]
+ return [Shot(sd) for sd in data['shots']]
def ishots(self, start_page=1):

0 comments on commit d6cca0b

Please sign in to comment.