Font-Awesomed System

This commit is contained in:
Mark McDowall 2012-10-11 00:46:38 -07:00
commit 9a006fc702
4 changed files with 7 additions and 6 deletions

View file

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Providers
{
var series = _database.Fetch<Series>();
var episodes = _database.Fetch<Episode>();
var history = _database.Fetch<History>("WHERE Date <= @0", DateTime.Today.AddDays(-30));
var history = _database.Fetch<History>("WHERE Date >= @0", DateTime.Today.AddDays(-30));
var stats = new StatsModel();
stats.SeriesTotal = series.Count;
@ -37,7 +37,7 @@ namespace NzbDrone.Core.Providers
stats.EpisodesOnDisk = episodes.Count(e => e.EpisodeFileId > 0);
stats.EpisodesMissing = episodes.Count(e => e.Ignored == false && e.EpisodeFileId == 0);
stats.DownloadedLastMonth = history.Count;
stats.DownloadLastWeek = history.Count(h => h.Date <= DateTime.Today.AddDays(7));
stats.DownloadLastWeek = history.Count(h => h.Date >= DateTime.Today.AddDays(-7));
return stats;
}