Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Thanks for completely changing that shot list JSON, Dribbble.

  • Loading branch information...
commit d6cca0bdcd6846719edadda867f8af1cd0a27fe3 1 parent 9e4470c
Steve Losh authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 dribbble/api.py
View
6 dribbble/api.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.