On 09/05/2012 01:56 PM, Tzu-Mainn Chen wrote:
---
  src/app/controllers/logs_controller.rb |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/app/controllers/logs_controller.rb 
b/src/app/controllers/logs_controller.rb
index 22e6bae..e191cf9 100644
--- a/src/app/controllers/logs_controller.rb
+++ b/src/app/controllers/logs_controller.rb
@@ -127,9 +127,10 @@ class LogsController < ApplicationController
                      @to_date.to_datetime.end_of_day,
                      @source_type]
      else
-      conditions = ["event_time between ? and ?",
+      conditions = ["event_time between ? and ? and source_type in (?)",
                      @from_date.to_datetime.beginning_of_day,
-                    @to_date.to_datetime.end_of_day]
+                    @to_date.to_datetime.end_of_day,
+                   ["Deployment", "Instance"]]
      end
@events = Event.unscoped.find(:all,
ACK and pushed to master.

Scott

Reply via email to