Skip to content

Commit

Permalink
Handle byes when calculating matchup history
Browse files Browse the repository at this point in the history
  • Loading branch information
heshammourad committed Dec 19, 2024
1 parent 97dbf74 commit 2493e7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions messages/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def get(league):
for wk in range(1, week):
week_matchups = league.box_scores(week=wk)
for matchup in week_matchups:
if matchup.away_team == 0:
continue
away_abbrev = matchup.away_team.team_abbrev
away_score = matchup.away_score
home_abbrev = matchup.home_team.team_abbrev
Expand Down

0 comments on commit 2493e7c

Please sign in to comment.