From 4732c0ad671591c90daa34212fbd43d9e13edae3 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Tue, 17 Apr 2012 18:59:17 +0200 Subject: [PATCH] CC-733 : Broadcast Log --- airtime_mvc/application/models/PlayoutHistory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/PlayoutHistory.php b/airtime_mvc/application/models/PlayoutHistory.php index 6918f9dd1..8e453f2ba 100644 --- a/airtime_mvc/application/models/PlayoutHistory.php +++ b/airtime_mvc/application/models/PlayoutHistory.php @@ -65,7 +65,8 @@ class Application_Model_PlayoutHistory { $historyTable = "( select count(schedule.file_id) as played, schedule.file_id as file_id from cc_schedule as schedule - where schedule.starts >= '{$start}' and schedule.starts < '{$end}' + where schedule.starts >= '{$start}' and schedule.starts < '{$end}' + and schedule.playout_status > 0 and schedule.media_item_played != FALSE group by schedule.file_id ) AS playout left join cc_files as file on (file.id = playout.file_id)";