Jon Solow
commited on
Commit
·
33f3ba9
1
Parent(s):
ed0fd3f
Fix logic in the check for reg vs post season in yahoo stats
Browse files- src/stats.py +1 -1
src/stats.py
CHANGED
@@ -281,7 +281,7 @@ def add_yahoo_stat_type_to_stat_map(
|
|
281 |
if week not in stat_map:
|
282 |
stat_map[week] = {}
|
283 |
|
284 |
-
season_type = "REGULAR_SEASON" if int(raw_week) <
|
285 |
if yahoo_stat_type == "KICKING":
|
286 |
week_leaders = week_dict[season_type][""]["FIELD_GOALS_MADE"]["leagues"][0]["leagueWeeks"][0]["leaders"]
|
287 |
elif yahoo_stat_type == "DEFENSE":
|
|
|
281 |
if week not in stat_map:
|
282 |
stat_map[week] = {}
|
283 |
|
284 |
+
season_type = "REGULAR_SEASON" if int(raw_week) < 19 else "POSTSEASON"
|
285 |
if yahoo_stat_type == "KICKING":
|
286 |
week_leaders = week_dict[season_type][""]["FIELD_GOALS_MADE"]["leagues"][0]["leagueWeeks"][0]["leaders"]
|
287 |
elif yahoo_stat_type == "DEFENSE":
|