Skip to content

Commit

Permalink
fix: fix indent error
Browse files Browse the repository at this point in the history
I'm just an idiot don't mind me
  • Loading branch information
DesiPilla committed Nov 18, 2023
1 parent 55741f3 commit 3c00fdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions espn_api/football/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ def __init__(self, data, year):
self.stats[scoring_period][avg_type] = avg_points
else:
self.stats[scoring_period] = {points_type: points, breakdown_type: breakdown, avg_type: avg_points}
self.total_points = self.stats.get(0, {}).get('points', 0)
self.projected_total_points = self.stats.get(0, {}).get('projected_points', 0)
self.avg_points = self.stats.get(0, {}).get('avg_points', 0)
self.projected_avg_points = self.stats.get(0, {}).get('projected_avg_points', 0)
if not stat_source:
if not self.stats[scoring_period][breakdown_type]:
self.active_status = 'inactive'
else:
self.active_status = 'active'
self.total_points = self.stats.get(0, {}).get('points', 0)
self.projected_total_points = self.stats.get(0, {}).get('projected_points', 0)
self.avg_points = self.stats.get(0, {}).get('avg_points', 0)
self.projected_avg_points = self.stats.get(0, {}).get('projected_avg_points', 0)

def __repr__(self):
return f'Player({self.name})'

0 comments on commit 3c00fdc

Please sign in to comment.