Fix type handling for article content in generate_atom_feed function

This commit is contained in:
github-actions[bot]
2025-05-15 03:35:22 +02:00
parent 42a0f53dc2
commit e3c8494049

View File

@ -392,7 +392,7 @@ def generate_atom_feed(articles: list[dict[Any, Any]], file_name: str) -> str:
)
article_title: str = article.get("articleTitle", "No Title")
article_content: str = article.get("articleContent", article_title)
article_content: str = article.get("articleContent", str(article_title))
if not article_content:
article_content = article_title