Spaces:
Sleeping
Sleeping
Update newsletter_api.py
Browse files- newsletter_api.py +2 -1
newsletter_api.py
CHANGED
@@ -71,7 +71,8 @@ def extract_news_from_rss(feed_urls: list[str], topic: str, threshold: float = 0
|
|
71 |
content = content.replace('"', "'")
|
72 |
|
73 |
if score >= threshold:
|
74 |
-
topic_articles.append
|
|
|
75 |
"title": title,
|
76 |
"link": link,
|
77 |
"summary": summary,
|
|
|
71 |
content = content.replace('"', "'")
|
72 |
|
73 |
if score >= threshold:
|
74 |
+
topic_articles.append
|
75 |
+
"topic": topic,
|
76 |
"title": title,
|
77 |
"link": link,
|
78 |
"summary": summary,
|