From 6922e5f85fb7d26df973d2b28589452a8238f6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8A?= Date: Thu, 13 Feb 2025 13:19:13 +0530 Subject: [PATCH] Update ai_news_article_writer.py - Issue 154 encountered an issue with the AI News Writer feature. The system successfully generates a news report (as indicated by the success message), but the actual content is not displayed in the UI. Steps to Reproduce: Open Alwrity and navigate to AI Writers. Select Write News Reports. Enter keywords (e.g., Upcoming AI Trends in 2025). Select an origin country (e.g., India) and language (e.g., English). Click Generate News Report. --- lib/ai_writers/ai_news_article_writer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ai_writers/ai_news_article_writer.py b/lib/ai_writers/ai_news_article_writer.py index 77520721..97e84419 100644 --- a/lib/ai_writers/ai_news_article_writer.py +++ b/lib/ai_writers/ai_news_article_writer.py @@ -41,6 +41,7 @@ def ai_news_generation(news_keywords, news_country, news_language): except Exception as err: logger.error(f"Failed in Google News web research: {err}") logger.info("\n######### Draft1: Finished News article from Google web search: ###########\n\n") + return blog_markdown_str def write_news_google_search(news_keywords, news_country, news_language, search_results):