fix
This commit is contained in:
@@ -210,7 +210,7 @@ def fetch_duckduckgo_news_context(title, hours=24):
|
|||||||
return title
|
return title
|
||||||
|
|
||||||
def curate_from_rss():
|
def curate_from_rss():
|
||||||
articles = fetch_rss_articles()
|
articles = fetch_rss_feeds() # Corrected from fetch_rss_articles to fetch_rss_feeds
|
||||||
if not articles:
|
if not articles:
|
||||||
print("No RSS articles available")
|
print("No RSS articles available")
|
||||||
logging.info("No RSS articles available")
|
logging.info("No RSS articles available")
|
||||||
@@ -223,7 +223,7 @@ def curate_from_rss():
|
|||||||
title = article["title"]
|
title = article["title"]
|
||||||
link = article["link"]
|
link = article["link"]
|
||||||
summary = article.get("summary", "")
|
summary = article.get("summary", "")
|
||||||
source_name = article.get("source_name", "Unknown Source")
|
source_name = article.get("feed_title", "Unknown Source") # Adjusted to match fetch_rss_feeds output
|
||||||
original_source = f'<a href="{link}">{source_name}</a>'
|
original_source = f'<a href="{link}">{source_name}</a>'
|
||||||
|
|
||||||
if title in posted_titles:
|
if title in posted_titles:
|
||||||
|
|||||||
Reference in New Issue
Block a user