Skip to content

Commit fc1fb47

Browse files
committed
update #371 統計情報表示期間を2018年12月31日まで延長
年も明けて2019年になったので、統計情報ページに2018年分の統計情報も公開したいため
1 parent 2555a36 commit fc1fb47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/stats_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def show
1010
@sum_of_dojos = DojoEventService.count('DISTINCT dojo_id')
1111
@sum_of_participants = EventHistory.sum(:participants)
1212

13-
# 2012年1月1日〜2017年12月31日までの集計結果
14-
period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2017).end_of_year
13+
# 2012年1月1日〜2018年12月31日までの集計結果
14+
period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2018).end_of_year
1515
stat = Stat.new(period)
1616
@dojos = stat.annual_sum_total_of_aggregatable_dojo
1717
@events = stat.annual_count_of_event_histories

0 commit comments

Comments
 (0)