mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
fixed some broken tests.
This commit is contained in:
parent
c1960525d7
commit
ba4950ea8f
32 changed files with 153 additions and 162 deletions
|
@ -27,13 +27,13 @@ namespace NzbDrone.Core.Jobs
|
|||
|
||||
public JobDefinition GetDefinition(Type type)
|
||||
{
|
||||
return Queryable().Single(c => c.Type == type.FullName);
|
||||
return Query.Single(c => c.Type == type.FullName);
|
||||
}
|
||||
|
||||
|
||||
public IList<JobDefinition> GetPendingJobs()
|
||||
{
|
||||
return Queryable().Where(c => c.Enable == true && c.Interval != 2).ToList().Where(c => c.LastExecution < DateTime.Now.AddMinutes(-c.Interval)).ToList();
|
||||
return Query.Where(c => c.Enable == true && c.Interval != 2).ToList().Where(c => c.LastExecution < DateTime.Now.AddMinutes(-c.Interval)).ToList();
|
||||
}
|
||||
|
||||
public void Init()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue