From a07bb67a33338dc13a1bdab7003f761ed60fc016 Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 22 May 2025 06:48:49 -0700 Subject: [PATCH] Fix: Align redundancy check broadcast history with web UI broadcast history --- storage.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/storage.go b/storage.go index 425a996..65dc26d 100644 --- a/storage.go +++ b/storage.go @@ -331,7 +331,12 @@ func getRecentBroadcasts(n int) []Article { rows, err := db.Query(` SELECT link, title, description, published, originalDate, source, firstseen, seen, summary, importance, id, broadcastTime FROM articles - WHERE broadcastTime IS NOT NULL AND broadcastTime > 1 + WHERE broadcastTime IS NOT NULL + AND broadcastTime > 1 + AND broadcastTime != 0 + AND datetime(broadcastTime) != '1970-01-01 00:00:00' + AND datetime(broadcastTime) != '0001-01-01 00:00:00' + AND strftime('%Y', broadcastTime) > '2000' -- Ensure year is at least 2000 ORDER BY broadcastTime DESC LIMIT ? `, n)