From 3c00fdce928b321c65611ae60476879cc6092922 Mon Sep 17 00:00:00 2001 From: Desi Pilla Date: Fri, 17 Nov 2023 21:46:40 -0500 Subject: [PATCH] fix: fix indent error I'm just an idiot don't mind me --- espn_api/football/player.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/espn_api/football/player.py b/espn_api/football/player.py index 22895eac..3d94d70b 100644 --- a/espn_api/football/player.py +++ b/espn_api/football/player.py @@ -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})'