mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed the logs page
This commit is contained in:
parent
7f40f0b86e
commit
837572a8cd
1 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,8 @@ using PlexRequests.UI.Helpers;
|
||||||
using PlexRequests.UI.Models;
|
using PlexRequests.UI.Models;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
using Nancy.Json;
|
||||||
|
|
||||||
namespace PlexRequests.UI.Modules
|
namespace PlexRequests.UI.Modules
|
||||||
{
|
{
|
||||||
public class AdminModule : NancyModule
|
public class AdminModule : NancyModule
|
||||||
|
@ -607,7 +609,8 @@ namespace PlexRequests.UI.Modules
|
||||||
|
|
||||||
private Response LoadLogs()
|
private Response LoadLogs()
|
||||||
{
|
{
|
||||||
var allLogs = LogsRepo.GetAll();
|
JsonSettings.MaxJsonLength = int.MaxValue;
|
||||||
|
var allLogs = LogsRepo.GetAll().OrderByDescending(x => x.Id).Take(200);
|
||||||
var model = new DatatablesModel<LogEntity> {Data = new List<LogEntity>()};
|
var model = new DatatablesModel<LogEntity> {Data = new List<LogEntity>()};
|
||||||
foreach (var l in allLogs)
|
foreach (var l in allLogs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue