Skip to content

Commit 283630b

Browse files
committed
Show sum of 道場数 insterad of 新規道場数 in Stats
1 parent 8e9b9e1 commit 283630b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/controllers/static_pages_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def stats
2121

2222
# 2012年1月1日〜2017年12月31日までの集計結果
2323
@dojos, @events, @participants = {}, {}, {}
24-
@range = (2012..2017)
24+
@range = 2012..2017
2525
@range.each do |year|
2626
@dojos[year] =
2727
Dojo.where(created_at:
28-
Time.zone.local(year).beginning_of_year..Time.zone.local(year).end_of_year).count
28+
Time.zone.local(2012).beginning_of_year..Time.zone.local(year).end_of_year).count
2929
@events[year] =
3030
EventHistory.where(evented_at:
3131
Time.zone.local(year).beginning_of_year..Time.zone.local(year).end_of_year).count

app/views/static_pages/stats.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
%td{style: 'padding: 0 5px; font-weight: bold;'} #{year}年
4242
%tbody{align: 'center'}
4343
%tr
44-
%td 新規道場数
44+
%td 道場数
4545
- @range.each do |year|
4646
%td #{@dojos[year]}
4747
%tr

0 commit comments

Comments
 (0)