feat(cover): filter obituaries from cover headlines

Exclude articles categorized as "Obituaries" from the headline list
passed to cover generation. Applied in all three call sites: manual
publish, issue regenerate, and auto-publish scheduler.

Made-with: Cursor
This commit is contained in:
cottongin
2026-04-06 18:59:51 -04:00
parent 9a8b586292
commit 67c35f7e9c
3 changed files with 20 additions and 9 deletions

View File

@@ -76,7 +76,10 @@ class SchedulerManager:
return
article_ids = [a.id for a in articles]
headlines = [a.title for a in articles]
headlines = [
a.title for a in articles
if "Obituaries" not in json.loads(a.categories)
]
categories_list = []
for a in articles: