Keep ItemCount on Feed struct for computed values (not stored in DB)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
primal
2026-02-04 21:00:22 -05:00
parent e4698045b3
commit 4d6814917b
+2 -2
View File
@@ -23,8 +23,8 @@ type Feed struct {
Status string `json:"status"`
LastError string `json:"last_error,omitempty"`
// Content stats
ItemCount int `json:"item_count,omitempty"` // Number of items in last feed_check
// Computed from items table (not stored in feeds table)
ItemCount int `json:"item_count,omitempty"`
// Adaptive check interval
MissCount int `json:"miss_count"` // Consecutive checks with no new items