Skip to content

2018年の統計情報を追加 #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/stats_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def show
@sum_of_dojos = DojoEventService.count('DISTINCT dojo_id')
@sum_of_participants = EventHistory.sum(:participants)

# 2012年1月1日〜2017年12月31日までの集計結果
period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2017).end_of_year
# 2012年1月1日〜2018年12月31日までの集計結果
period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2018).end_of_year
stat = Stat.new(period)
@dojos = stat.annual_sum_total_of_aggregatable_dojo
@events = stat.annual_count_of_event_histories
Expand Down
2 changes: 1 addition & 1 deletion app/views/stats/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@


%h3 最新データ
2018年のデータも含めた最新の統計情報は次のとおりです。
2019年のデータも含めた最新の統計情報は次のとおりです。
%div{align: 'center'}
%table{style: 'margin-top: 4px;'}
%thead
Expand Down