From f9d88722606e5c2570fe4237a64b5a1b22bf1789 Mon Sep 17 00:00:00 2001 From: nytpu Date: Wed, 19 May 2021 08:00:21 -0600 Subject: add core.HistoryDays for variable history kept --- core/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/structs.go') diff --git a/core/structs.go b/core/structs.go index 1244567..f9b738b 100644 --- a/core/structs.go +++ b/core/structs.go @@ -83,7 +83,7 @@ func GofeedConvert(f *gofeed.Feed, title string) (*Feed, error) { item.Link = v.Link // don't insert if older than 1 year - if item.Published.After(time.Now().AddDate(-1, 0, 0)) { + if item.Published.After(HistoryDays) { new.Items = append(new.Items, item) } } -- cgit v1.2.3