Skip to content

Commit 9ef98a8

Browse files
committed
Put reference to TODO issue in Stats action
1 parent 163f3a0 commit 9ef98a8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/controllers/static_pages_controller.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ def stats
1010
@regions_and_dojos = Dojo.eager_load(:prefecture).default_order.group_by { |dojo| dojo.prefecture.region }
1111

1212
# 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: 同上。上記の道場数を静的に足しています
13+
# https://github.com/coderdojo-japan/coderdojo.jp/issues/190
14+
@sum_of_events = EventHistory.count
15+
@sum_of_dojos = DojoEventService.count('DISTINCT dojo_id')
2016
@sum_of_participants = EventHistory.sum(:participants)
2117

2218
# 2012年1月1日〜2017年12月31日までの集計結果

0 commit comments

Comments
 (0)