mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
only skip hardcoded wayback snapshots if it has a previous success
ref #325
This commit is contained in:
parent
61181e5664
commit
5d6851011b
1 changed files with 3 additions and 3 deletions
|
|
@ -34,13 +34,13 @@ private async Task<IEnumerable<FilterListViewUrlDto>> GetListsToCapture(int batc
|
|||
await DbContext
|
||||
.FilterLists
|
||||
.Where(l => !l.CantSnapshot &&
|
||||
!(l.ViewUrl.StartsWith(WaybackService.WaybackMachineUrlPrefix) &&
|
||||
l.Snapshots.Any(s => s.WasSuccessful)) &&
|
||||
(!l.Snapshots.Any() ||
|
||||
l.Snapshots
|
||||
.Select(s => s.CreatedDateUtc)
|
||||
.OrderByDescending(d => d)
|
||||
.First() < yesterday &&
|
||||
!l.ViewUrl
|
||||
.StartsWith(WaybackService.WaybackMachineUrlPrefix)))
|
||||
.First() < yesterday))
|
||||
.OrderBy(l => l.Snapshots.Any())
|
||||
.ThenBy(l => l.Snapshots
|
||||
.OrderByDescending(s => s.CreatedDateUtc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue