From 2555a36ad5c1386ef6e3ec009f5079c4b185c5a9 Mon Sep 17 00:00:00 2001 From: Hirokazu Odo Date: Tue, 22 Jan 2019 23:29:00 +0900 Subject: [PATCH 1/3] first commit From fc1fb476517fa7a1d3bd5e00b308a5c719f2b15f Mon Sep 17 00:00:00 2001 From: Hirokazu Odo Date: Tue, 22 Jan 2019 23:46:55 +0900 Subject: [PATCH 2/3] =?UTF-8?q?update=20#371=20=E7=B5=B1=E8=A8=88=E6=83=85?= =?UTF-8?q?=E5=A0=B1=E8=A1=A8=E7=A4=BA=E6=9C=9F=E9=96=93=E3=82=922018?= =?UTF-8?q?=E5=B9=B412=E6=9C=8831=E6=97=A5=E3=81=BE=E3=81=A7=E5=BB=B6?= =?UTF-8?q?=E9=95=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 年も明けて2019年になったので、統計情報ページに2018年分の統計情報も公開したいため --- app/controllers/stats_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 013b33d14..cde29d315 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -10,8 +10,8 @@ def show @sum_of_dojos = DojoEventService.count('DISTINCT dojo_id') @sum_of_participants = EventHistory.sum(:participants) - # 2012年1月1日〜2017年12月31日までの集計結果 - period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2017).end_of_year + # 2012年1月1日〜2018年12月31日までの集計結果 + period = Time.zone.local(2012).beginning_of_year..Time.zone.local(2018).end_of_year stat = Stat.new(period) @dojos = stat.annual_sum_total_of_aggregatable_dojo @events = stat.annual_count_of_event_histories From 5367755b47da285b0ccfc503105c2f2e4211bc69 Mon Sep 17 00:00:00 2001 From: Hirokazu Odo Date: Mon, 18 Feb 2019 23:49:21 +0900 Subject: [PATCH 3/3] =?UTF-8?q?update=20#371=20=E6=9C=80=E6=96=B0=E3=83=87?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E3=81=AE=E8=A1=A8=E8=A8=98=E5=B9=B4=E6=95=B0?= =?UTF-8?q?=E3=82=922019=E5=B9=B4=E3=81=AB=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit アクティブな道場の数を都度DBから取得していて、常に最新のデータが表示されているので更新しました。 --- app/views/stats/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stats/show.html.haml b/app/views/stats/show.html.haml index f5fa9441a..96cd709a0 100644 --- a/app/views/stats/show.html.haml +++ b/app/views/stats/show.html.haml @@ -55,7 +55,7 @@ %h3 最新データ - 2018年のデータも含めた最新の統計情報は次のとおりです。 + 2019年のデータも含めた最新の統計情報は次のとおりです。 %div{align: 'center'} %table{style: 'margin-top: 4px;'} %thead