Skip to content

Commit

Permalink
Merge pull request #111 from cwendt94/BoxPlayerByeWeekStats
Browse files Browse the repository at this point in the history
Default stats if week not found
  • Loading branch information
cwendt94 authored Sep 7, 2020
2 parents 37ad013 + 3373078 commit 112cafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion espn_api/football/box_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, data, pro_schedule, positional_rankings, week):
self.pro_opponent = PRO_TEAM_MAP[opp_id]
self.pro_pos_rank = positional_rankings[posId][str(opp_id)] if str(opp_id) in positional_rankings[posId] else 0

stats = self.stats.get(week)
stats = self.stats.get(week, {})
self.points = stats.get('points', 0)
self.points_breakdown = stats.get('breakdown', 0)
self.projected_points = stats.get('projected_points', 0)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='espn_api',
packages=find_packages(),
version='0.5.0',
version='0.5.1',
author='Christian Wendt',
description='ESPN API',
install_requires=['requests>=2.0.0,<3.0.0'],
Expand Down

0 comments on commit 112cafe

Please sign in to comment.