fix added to avoid a blank row in aggregate view

This commit is contained in:
Naomi 2013-07-30 19:32:31 -04:00
parent a170ee7308
commit 07819d895d
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ USING (history_id)
select count(history.file_id) as played, history.file_id as file_id
from cc_playout_history as history
where history.starts >= '{$start}' and history.starts < '{$end}'
and history.file_id is not NULL
group by history.file_id
) AS playout
left join cc_files as file on (file.id = playout.file_id)";