We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163f3a0 commit 9ef98a8Copy full SHA for 9ef98a8
app/controllers/static_pages_controller.rb
@@ -10,13 +10,9 @@ def stats
10
@regions_and_dojos = Dojo.eager_load(:prefecture).default_order.group_by { |dojo| dojo.prefecture.region }
11
12
# TODO: 次の静的なDojoの開催数もデータベース上で集計できるようにする
13
- @sum_of_events = EventHistory.count #+ # 以下は2017年11月3日時点で個別に確認した数字
14
- #29 + # 柏の葉
15
- #3 + # 南柏
16
- #4 + # 柏湘南
17
- #63 # 小平
18
- @sum_of_dojos = DojoEventService.count('DISTINCT dojo_id') #+
19
- #4 # TODO: 同上。上記の道場数を静的に足しています
+ # https://github.com/coderdojo-japan/coderdojo.jp/issues/190
+ @sum_of_events = EventHistory.count
+ @sum_of_dojos = DojoEventService.count('DISTINCT dojo_id')
20
@sum_of_participants = EventHistory.sum(:participants)
21
22
# 2012年1月1日〜2017年12月31日までの集計結果
0 commit comments