Spaces:
Runtime error
Runtime error
less articles
Browse files
app_socket_multi_threaded.py
CHANGED
@@ -135,7 +135,7 @@ def get_news_data(ticker):
|
|
135 |
|
136 |
# Get top 5 news articles for the given ticker
|
137 |
search_results = get_news_articles_info(ticker_name=ticker)
|
138 |
-
articles = search_results[:
|
139 |
|
140 |
for article in articles:
|
141 |
news_data.append({
|
|
|
135 |
|
136 |
# Get top 5 news articles for the given ticker
|
137 |
search_results = get_news_articles_info(ticker_name=ticker)
|
138 |
+
articles = search_results[:3]
|
139 |
|
140 |
for article in articles:
|
141 |
news_data.append({
|