#263 Remove duplicates in programming before sending to random slots endpoint

This commit is contained in:
vexorian 2021-03-15 00:03:55 -04:00
parent 99a150c9cf
commit 8889d5a456

View File

@ -1886,7 +1886,8 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions) {
scope.timeSlots.startDialog( progs, scope.maxSize, scope.channel.scheduleBackup );
}
scope.onRandomSlotsButtonClick = () => {
scope.randomSlots.startDialog(scope.channel.programs, scope.maxSize, scope.channel.randomScheduleBackup );
let progs = removeDuplicatesSub( scope.channel.programs );
scope.randomSlots.startDialog(progs, scope.maxSize, scope.channel.randomScheduleBackup );
}
scope.logoOnChange = (event) => {