v38: d:feeds only shows feeds with items
This commit is contained in:
@@ -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'
|
||||
|
||||
+1
-1
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
|
||||
<div id="output"></div>
|
||||
</div>
|
||||
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v37</div>
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v38</div>
|
||||
|
||||
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user