mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
New: All setting values are cached for better responsiveness.
This commit is contained in:
parent
2051c9d911
commit
6df184b7cb
6 changed files with 101 additions and 24 deletions
|
@ -48,13 +48,13 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
var jobs = _jobProvider.All().Select(j => new JobModel
|
||||
{
|
||||
Id = j.Id,
|
||||
Enable = j.Enable,
|
||||
TypeName = j.TypeName,
|
||||
Name = j.Name,
|
||||
Interval = j.Interval,
|
||||
LastExecution = j.LastExecution.ToString(),
|
||||
Success = j.Success
|
||||
Id = j.Id,
|
||||
Enable = j.Enable,
|
||||
TypeName = j.TypeName,
|
||||
Name = j.Name,
|
||||
Interval = j.Interval,
|
||||
LastExecution = j.LastExecution.ToString(),
|
||||
Success = j.Success
|
||||
}).OrderBy(j => j.Interval);
|
||||
|
||||
var serializedJobs = new JavaScriptSerializer().Serialize(jobs);
|
||||
|
@ -84,9 +84,9 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
return Json(new
|
||||
{
|
||||
iTotalRecords = config.Count,
|
||||
iTotalDisplayRecords = config.Count,
|
||||
aaData = config
|
||||
iTotalRecords = config.Count(),
|
||||
iTotalDisplayRecords = config.Count(),
|
||||
aaData = config
|
||||
}, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue