Skip to content

Commit

Permalink
Stop implicitly loading play_player data.
Browse files Browse the repository at this point in the history
This was once useful when plays and play_players were
irrevocably tied together. But now that play has its
own aggregate data, we no longer need this.
  • Loading branch information
BurntSushi committed Aug 14, 2014
1 parent 802db82 commit d2739db
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions nfldb/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,12 +1744,6 @@ def __str__(self):
def __getattr__(self, k):
if k in Play.__slots__:
return 0
if k in PlayPlayer.__slots__:
for pp in self.play_players:
v = getattr(pp, k)
if v != 0:
return v
return 0
raise AttributeError(k)


Expand Down

0 comments on commit d2739db

Please sign in to comment.