so no playlists show up on left side when a show is overbooked.
This commit is contained in:
parent
76b1e3b7f7
commit
1e94578f13
2 changed files with 5 additions and 4 deletions
|
@ -1558,9 +1558,10 @@ class StoredFile {
|
|||
}
|
||||
|
||||
|
||||
public static function searchPlaylistsForSchedule($datatables)
|
||||
public static function searchPlaylistsForSchedule($time_remaining, $datatables)
|
||||
{
|
||||
$fromTable = "cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id";
|
||||
$datatables["optWhere"][] = "INTERVAL '{$time_remaining}' > INTERVAL '00:00:00'";
|
||||
$datatables["optWhere"][] = "plt.length > INTERVAL '00:00:00'";
|
||||
|
||||
return StoredFile::searchFiles($fromTable, $datatables);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue