From 4d6814917beec3df240e682586697cf5b019efb6 Mon Sep 17 00:00:00 2001 From: primal Date: Wed, 4 Feb 2026 21:00:22 -0500 Subject: [PATCH] Keep ItemCount on Feed struct for computed values (not stored in DB) Co-Authored-By: Claude Opus 4.5 --- models.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models.go b/models.go index 89dc3e3..63993b1 100644 --- a/models.go +++ b/models.go @@ -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