repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
815c299
parent
26a8a1f
author
Eric Bower
date
2022-12-22 01:44:55 +0000 UTC
bug(feeds): cron was not properly validating the digest period
1 files changed,  +1, -1
M feeds/cron.go
+1, -1
1@@ -80,7 +80,7 @@ func (f *Fetcher) Validate(lastDigest *time.Time, parsed *shared.ListParsedText)
2 
3 	digestAt := digestOptionToTime(*lastDigest, parsed.DigestInterval)
4 	now := time.Now().UTC()
5-	if digestAt.Before(now) {
6+	if digestAt.After(now) {
7 		return fmt.Errorf("(%s) not time to digest, skipping", digestAt)
8 	}
9 	return nil