From 0ef96881a7e49ee9e97d6cc558d6ba9d1ad6ff3d Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 6 Oct 2018 07:59:54 -0500 Subject: [PATCH] only set UpdatedDate on new hash rather than including first hash ref #485 --- src/FilterLists.Services/Snapshot/Snapshot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Services/Snapshot/Snapshot.cs b/src/FilterLists.Services/Snapshot/Snapshot.cs index 5c57106ac..d2638407c 100644 --- a/src/FilterLists.Services/Snapshot/Snapshot.cs +++ b/src/FilterLists.Services/Snapshot/Snapshot.cs @@ -187,7 +187,8 @@ private void UpdateUpdatedDate() { if (isUpdatedDateFromGitHub) return; - List.UpdatedDate = DateTime.Now; + if (List.Snapshots.Any(s => s.WasUpdated && s.WasSuccessful)) + List.UpdatedDate = DateTime.Now; } private async Task GetLinesFrom7Zip(Stream stream)