From 4db5fab4beed15fe79e214be80f45d7a59dc68d5 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 25 Aug 2018 08:32:57 -0500 Subject: [PATCH] simplify GetListsToCapture() --- src/FilterLists.Services/Snapshot/SnapshotService.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FilterLists.Services/Snapshot/SnapshotService.cs b/src/FilterLists.Services/Snapshot/SnapshotService.cs index 502543674..253a69e5c 100644 --- a/src/FilterLists.Services/Snapshot/SnapshotService.cs +++ b/src/FilterLists.Services/Snapshot/SnapshotService.cs @@ -39,10 +39,7 @@ await DbContext .Select(s => s.CreatedDateUtc) .OrderByDescending(d => d) .First() < yesterday && - !l.Snapshots - .First() - .FilterList - .ViewUrl + !l.ViewUrl .StartsWith(WaybackService.WaybackMachineUrlPrefix))) .OrderBy(l => l.Snapshots.Any()) .ThenBy(l => l.Snapshots