repos / pico

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

commit
cad59bf
parent
03047ec
author
Eric Bower
date
2022-12-27 04:16:17 +0000 UTC
feat(feeds): add `6hour` to feed digest interval
2 files changed,  +4, -1
M feeds/cron.go
+3, -1
 1@@ -63,10 +63,12 @@ func digestOptionToTime(date time.Time, interval string) time.Time {
 2 		return date.Add(10 * time.Minute)
 3 	} else if interval == "1hour" {
 4 		return date.Add(1 * time.Hour)
 5+	} else if interval == "6hour" {
 6+		return date.Add(6 * time.Hour)
 7 	} else if interval == "12hour" {
 8 		return date.Add(12 * time.Hour)
 9 	} else if interval == "1day" || interval == "" {
10-		return date.Add(day)
11+		return date.Add(1 * day)
12 	} else if interval == "7day" {
13 		return date.Add(7 * day)
14 	} else if interval == "30day" {
M feeds/html/help.page.tmpl
+1, -0
1@@ -61,6 +61,7 @@
2         <ul>
3             <li><code>10min</code></li>
4             <li><code>1hour</code></li>
5+            <li><code>6hour</code></li>
6             <li><code>12hour</code></li>
7             <li><code>1day</code></li>
8             <li><code>7day</code></li>