mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
simplify ifLastSnapFailed
This commit is contained in:
parent
83c2f1b20c
commit
8e66be6834
1 changed files with 2 additions and 6 deletions
|
|
@ -17,12 +17,8 @@ public class SnapshotService : Service
|
|||
private readonly Expression<Func<Data.Entities.FilterList, bool>> ifLastSnapFailed =
|
||||
l => l.Snapshots
|
||||
.OrderByDescending(s => s.CreatedDateUtc)
|
||||
.FirstOrDefault()
|
||||
.WasUpdated &&
|
||||
!l.Snapshots
|
||||
.OrderByDescending(s => s.CreatedDateUtc)
|
||||
.FirstOrDefault()
|
||||
.WasSuccessful;
|
||||
.Select(s => s.WasUpdated && !s.WasSuccessful)
|
||||
.FirstOrDefault();
|
||||
|
||||
private readonly Expression<Func<Data.Entities.FilterList, bool>> isNotWaybackViewUrlWithSuccessfulSnap =
|
||||
l => !(l.ViewUrl.StartsWith(WaybackService.WaybackMachineUrlPrefix) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue