|
|
@ -31,9 +31,7 @@ namespace NzbDrone.Core.History
|
|
|
|
|
|
|
|
|
|
|
|
public History MostRecentForDownloadId(string downloadId)
|
|
|
|
public History MostRecentForDownloadId(string downloadId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return FindByDownloadId(downloadId)
|
|
|
|
return FindByDownloadId(downloadId).MaxBy(h => h.Date);
|
|
|
|
.OrderByDescending(h => h.Date)
|
|
|
|
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<History> FindByDownloadId(string downloadId)
|
|
|
|
public List<History> FindByDownloadId(string downloadId)
|
|
|
@ -75,9 +73,7 @@ namespace NzbDrone.Core.History
|
|
|
|
|
|
|
|
|
|
|
|
public History MostRecentForIndexer(int indexerId)
|
|
|
|
public History MostRecentForIndexer(int indexerId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Query(x => x.IndexerId == indexerId)
|
|
|
|
return Query(x => x.IndexerId == indexerId).MaxBy(h => h.Date);
|
|
|
|
.OrderByDescending(h => h.Date)
|
|
|
|
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<History> Between(DateTime start, DateTime end)
|
|
|
|
public List<History> Between(DateTime start, DateTime end)
|
|
|
|