From 3be93ade78bd63a034a6d12348486669c7a8f078 Mon Sep 17 00:00:00 2001 From: Brad Beattie Date: Wed, 8 Apr 2009 14:54:47 -0700 Subject: [PATCH] Reducing timespan down to one day --- app/controllers/graphs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/graphs_controller.rb b/app/controllers/graphs_controller.rb index a4507ea..c0adc9d 100755 --- a/app/controllers/graphs_controller.rb +++ b/app/controllers/graphs_controller.rb @@ -17,7 +17,7 @@ class GraphsController < ApplicationController sql << " left join journal_details as jd on j.id = jd.journal_id" sql << " left join issue_statuses as is1 on jd.old_value = is1.id" sql << " left join issue_statuses as is2 on jd.value = is2.id" - sql << " where journalized_type = 'issue' and prop_key = 'status_id' and DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 15 DAY) <= created_on" + sql << " where journalized_type = 'issue' and prop_key = 'status_id' and DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 1 DAY) <= created_on" sql << " group by old_value, value" sql << " order by is1.position, is2.position" @status_changes = ActiveRecord::Base.connection.select_all(sql)