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"}}