Skip to content

Commit 5a174a4

Browse files
committed
Fix syntax error in declaring stats of 2017
1 parent 6527385 commit 5a174a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/static_pages_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def stats
2020
@sum_of_participants = EventHistory.sum(:participants)
2121

2222
# 2017年1月1日〜12月31日までの集計結果
23-
@2017_events = EventHistory.where('evented_at > ?', Time.zone.local(2017).beginning_of_year).count
24-
@2017_participants = EventHistory.where('evented_at > ?', Time.zone.local(2017).beginning_of_year).sum(:participants)
23+
@events_2017 = EventHistory.where('evented_at > ?', Time.zone.local(2017).beginning_of_year).count
24+
@participants_2017 = EventHistory.where('evented_at > ?', Time.zone.local(2017).beginning_of_year).sum(:participants)
2525
end
2626

2727
def letsencrypt

0 commit comments

Comments
 (0)