Skip to content

Commit

Permalink
stats completed and working
Browse files Browse the repository at this point in the history
  • Loading branch information
bzhang1945 committed Dec 3, 2023
1 parent 23d3ab3 commit ae6a33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def populate_shot_stats(self):
"""Computes team scores, player assists, and player rebounds"""
for shot in self.shot_attempts:
player = shot.playerid
team = self.team1 if player in self.team1.players else self.team2.players
team = self.team1 if player in self.team1.players else self.team2
idx_after = -1
for inte in self.possessions:
if inte.start >= shot.end:
Expand Down

0 comments on commit ae6a33f

Please sign in to comment.