fixed some issues here and there.

This commit is contained in:
kay.one 2013-05-10 22:59:42 -07:00
commit 85cd877b0c
12 changed files with 66 additions and 20 deletions

View file

@ -29,7 +29,7 @@ namespace NzbDrone.Core.Jobs
public IList<ScheduledTask> GetPending()
{
return _scheduledTaskRepository.GetPendingJobs();
return _scheduledTaskRepository.All().Where(c => c.LastExecution.AddMinutes(c.Interval) < DateTime.UtcNow).ToList();
}
public void SetLastExecutionTime(int taskId)