dlflannery commited on
Commit
c1d0c1d
·
verified ·
1 Parent(s): 9e43845

Update app.py

Browse files

Fixed: stock news search term included share count

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ def get_stock_news(search_symbol):
114
  search_term = search_symbol
115
  if search_symbol in stock_list.keys():
116
  have_symbol = True
117
- search_term = stock_list[search_symbol]
118
  try:
119
  news = yf.Search(search_term, news_count=5, enable_fuzzy_query=fuzzy).news
120
  except:
 
114
  search_term = search_symbol
115
  if search_symbol in stock_list.keys():
116
  have_symbol = True
117
+ (search_term, shares) = stock_list[search_symbol]
118
  try:
119
  news = yf.Search(search_term, news_count=5, enable_fuzzy_query=fuzzy).news
120
  except: