diff options
| author | nytpu <alex@nytpu.com> | 2021-05-19 08:00:21 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-05-19 08:02:28 -0600 |
| commit | f9d88722606e5c2570fe4237a64b5a1b22bf1789 (patch) | |
| tree | 49db52ecb6a468f3340256166299f0978990b608 /core/structs.go | |
| parent | ac86835f6dcaaf4c42e0c1f2e4ff5eae24b9ff14 (diff) | |
add core.HistoryDays for variable history kept
Diffstat (limited to 'core/structs.go')
| -rw-r--r-- | core/structs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |
