mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: (Indexers) Per indexer api and download limits
This commit is contained in:
@@ -24,6 +24,7 @@ namespace NzbDrone.Core.History
|
||||
List<History> GetByIndexerId(int indexerId, HistoryEventType? eventType);
|
||||
void UpdateMany(List<History> toUpdate);
|
||||
List<History> Since(DateTime date, HistoryEventType? eventType);
|
||||
int CountSince(int indexerId, DateTime date, List<HistoryEventType> eventTypes);
|
||||
}
|
||||
|
||||
public class HistoryService : IHistoryService,
|
||||
@@ -205,5 +206,10 @@ namespace NzbDrone.Core.History
|
||||
{
|
||||
_historyRepository.Purge(vacuum: true);
|
||||
}
|
||||
|
||||
public int CountSince(int indexerId, DateTime date, List<HistoryEventType> eventTypes)
|
||||
{
|
||||
return _historyRepository.CountSince(indexerId, date, eventTypes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user