New: Stats filters

This commit is contained in:
Qstick
2021-06-24 00:12:37 -04:00
parent 01e7e924c4
commit a61d4ab88c
11 changed files with 397 additions and 139 deletions

View File

@@ -24,6 +24,7 @@ namespace NzbDrone.Core.History
List<History> FindByDownloadId(string downloadId);
List<History> GetByIndexerId(int indexerId, HistoryEventType? eventType);
void UpdateMany(List<History> toUpdate);
List<History> Between(DateTime start, DateTime end);
List<History> Since(DateTime date, HistoryEventType? eventType);
int CountSince(int indexerId, DateTime date, List<HistoryEventType> eventTypes);
}
@@ -87,6 +88,11 @@ namespace NzbDrone.Core.History
_historyRepository.UpdateMany(toUpdate);
}
public List<History> Between(DateTime start, DateTime end)
{
return _historyRepository.Between(start, end);
}
public List<History> Since(DateTime date, HistoryEventType? eventType)
{
return _historyRepository.Since(date, eventType);