Skip to content

Commit

Permalink
Tweak season goalie stats display
Browse files Browse the repository at this point in the history
  • Loading branch information
minter committed Dec 2, 2023
1 parent c705de5 commit 19f3035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/workers/rod_the_bot/season_stats_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def perform(your_team)
goalie_post = <<~POST
🥅 Season goaltending stats for the #{your_team}
#{goalie_stats.sort_by { |k, v| v[:wins] }.reverse.map { |player| "#{player[1][:name]}: #{player[1][:wins]}-#{player[1][:losses]}, #{player[1][:save_percentage]} save pct, #{player[1][:goals_against_average]} GAA" }.join("\n")}
#{goalie_stats.sort_by { |k, v| v[:wins] }.reverse.map { |player| "#{player[1][:name]}: #{player[1][:wins]}-#{player[1][:losses]}, #{player[1][:save_percentage]} SV%, #{player[1][:goals_against_average]} GAA" }.join("\n")}
POST

skater_points_leader_post = <<~POST
Expand Down Expand Up @@ -103,7 +103,7 @@ def collect_roster_stats
wins: player["wins"],
losses: player["losses"],
save_percentage: player["savePercentage"].round(3),
goals_against_average: player["goalsAgainstAverage"].round(3)
goals_against_average: player["goalsAgainstAverage"].round(2)
}
end
[skater_stats, goalie_stats]
Expand Down

0 comments on commit 19f3035

Please sign in to comment.