From c374260e11f25a504b9d97c08aba55fedd82151b Mon Sep 17 00:00:00 2001 From: primal Date: Fri, 30 Jan 2026 16:04:38 -0500 Subject: [PATCH] v38: d:feeds only shows feeds with items --- api_domains.go | 2 ++ templates.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api_domains.go b/api_domains.go index 1a2cfe8..be7ce4b 100644 --- a/api_domains.go +++ b/api_domains.go @@ -73,6 +73,7 @@ func (c *Crawler) handleAPIDomains(w http.ResponseWriter, r *http.Request) { INNER JOIN ( SELECT source_host, COUNT(*) as feed_count FROM feeds + WHERE item_count > 0 GROUP BY source_host ) f ON d.host = f.source_host WHERE d.status = $1 @@ -87,6 +88,7 @@ func (c *Crawler) handleAPIDomains(w http.ResponseWriter, r *http.Request) { INNER JOIN ( SELECT source_host, COUNT(*) as feed_count FROM feeds + WHERE item_count > 0 GROUP BY source_host ) f ON d.host = f.source_host WHERE d.status != 'skip' diff --git a/templates.go b/templates.go index 025438f..01f478e 100644 --- a/templates.go +++ b/templates.go @@ -534,7 +534,7 @@ const dashboardHTML = `
-
v37
+
v38
Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}