only show reports from the last 24 hours

This commit is contained in:
RaidMax 2022-04-25 15:44:51 -05:00
parent ff0d22c142
commit 91c46dbdd4

View File

@ -327,7 +327,7 @@ namespace WebfrontCore.Controllers
new ServerInfo
{
Name = server.Hostname,
Reports = server.Reports
Reports = server.Reports.Where(report => (DateTime.UtcNow - report.ReportedOn).TotalHours <= 24).ToList()
});
return View("Partials/_Reports", serverInfo);