-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from scottwillson/racersbygender
Racers By Gender
- Loading branch information
Showing
3 changed files
with
70 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
module Admin | ||
class StatsController < Admin::AdminController | ||
def index | ||
@years = Stats.years | ||
@racer_days_by_discipline = Stats.racer_days_by_discipline | ||
@total_racer_days = Stats.total_racer_days | ||
@racers_by_discipline = Stats.racers_by_discipline | ||
@memberships = Stats.memberships | ||
@total_juniors = Stats.total_juniors | ||
@years = %w[2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024] | ||
@racer_days_by_discipline = Stats.racer_days_by_discipline(@years) | ||
@racers_by_discipline = Stats.racers_by_discipline(@years) | ||
@total_racer_days = Stats.total_racer_days(@years) | ||
@racers_by_gender = Stats.racers_by_gender(@years) | ||
@total_juniors = Stats.total_juniors(@years) | ||
@memberships = Stats.memberships(@years) | ||
end | ||
|
||
def nopandemic | ||
@years = %w[2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2021 2022 2023 2024] | ||
@racer_days_by_discipline = Stats.racer_days_by_discipline(@years) | ||
@racers_by_discipline = Stats.racers_by_discipline(@years) | ||
@total_racer_days = Stats.total_racer_days(@years) | ||
@total_juniors = Stats.total_juniors(@years) | ||
@memberships = Stats.memberships(@years) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters