This commit is contained in:
Paul Schneider 2022-07-03 14:50:57 +01:00
commit 2dcf1a2806
18 changed files with 166 additions and 98 deletions

View file

@ -6,7 +6,7 @@ using System.Linq;
using isnd.ViewModels;
using Unleash;
using System.Reflection;
using Microsoft.EntityFrameworkCore;
namespace isnd.Controllers
{
@ -27,7 +27,10 @@ namespace isnd.Controllers
{
return View(new HomeIndexViewModel{
PkgCount = _dbContext.Packages.Count(),
PkgCount = _dbContext.Packages
.Include(p => p.Versions)
.Where(p => p.Versions.Count > 0)
.Count(),
UnleashClient = _unleashĈlient
});
}