Commits

Steve Losh  committed 8ef227c

Thanks for completely changing that shot list JSON, Dribbble.

  • Participants
  • Parent commits 0b6abbe
  • Tags semver, v0.0.1

Comments (0)

Files changed (1)

File dribbble/api.py

         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):
     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):