aminaj commited on
Commit
55d5c95
·
verified ·
1 Parent(s): 2a030e8

Update newsletter_api.py

Browse files
Files changed (1) hide show
  1. 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,