mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Log view now uses proper paging so it doesn't take a year to load up each page.
This commit is contained in:
parent
c2c62aa538
commit
780abad3f7
3 changed files with 13 additions and 5 deletions
|
@ -21,6 +21,11 @@ namespace NzbDrone.Core.Instrumentation
|
|||
return _database.Fetch<Log>();
|
||||
}
|
||||
|
||||
public Page<Log> GetPagedLogs(int pageNumber, int pageSize)
|
||||
{
|
||||
return _database.Page<Log>(pageNumber, pageSize, "SELECT * FROM Logs ORDER BY Time DESC");
|
||||
}
|
||||
|
||||
public void DeleteAll()
|
||||
{
|
||||
_database.Delete<Log>("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue