Skip to content

Commit

Permalink
add game_played values
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-hsieh committed Oct 3, 2023
1 parent 92ca975 commit 433b29c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fantasy_app/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def new_dict(position, current_dict, lineup):
count += 1
current_dict['player{}'.format(count)] = {
'name': player.name,
'score': player.points
'score': player.points,
'game_played': player.game_played
}
total_score += player.points
current_dict['total_score'] = total_score
Expand Down

0 comments on commit 433b29c

Please sign in to comment.