Add week column

This commit is contained in:
Carlos 2024-09-26 09:07:51 -07:00
parent f378da5093
commit 43fbc70b20

1
app.py
View file

@ -28,6 +28,7 @@ def extract_matchup_box_scores(league: League, week_override: int) -> dict:
result = [] result = []
for matchup in matchups: for matchup in matchups:
result.append({ result.append({
'Week': week_override,
'Away Team': matchup.away_team.team_name, 'Away Team': matchup.away_team.team_name,
'Away Team Score': matchup.away_score, 'Away Team Score': matchup.away_score,
'Away Team Kicker Score': extract_positional_data(matchup.away_lineup, 'K'), 'Away Team Kicker Score': extract_positional_data(matchup.away_lineup, 'K'),