Skip to content

Commit 97b09bd

Browse files
authored
Merge pull request #376 from coderdojo-japan/add_2018_stats_data
2018年の統計情報を追加
2 parents b7ac75c + 5367755 commit 97b09bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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

app/views/stats/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656

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

0 commit comments

Comments
 (0)