SysOps: deploy-all — 2026-06-09 10:59 UTC

This commit is contained in:
sysops
2026-06-09 10:59:45 +00:00
parent 21ea3a2c81
commit 7f973b7203
9 changed files with 669 additions and 94 deletions
+11
View File
@@ -68,6 +68,17 @@ async def herman_briefing_stats():
bookmarks = []
stats["rss_bookmarks"] = bookmarks
stats["rss_bookmark_ids"] = list(bookmark_map.keys())
if not stats.get("rss_live") and not stats.get("trending_food"):
try:
stats["rss_live"] = fetch_all(
"""SELECT i.id, i.title, i.link, i.summary, f.name AS feed_name,
f.category, i.published_at
FROM rss_items i
JOIN rss_feeds f ON f.id = i.feed_id AND f.is_active = TRUE
ORDER BY i.published_at DESC NULLS LAST, i.fetched_at DESC LIMIT 25"""
)
except Exception:
stats["rss_live"] = []
return {"ok": True, "stats": stats, "bookmarks": bookmarks, "at": datetime.utcnow().isoformat()}