or the news should be remove (along with the get_news function in the model) ?
To Reproduce
Here is the code to reproduce the issue :
from gamestonk_terminal.stocks.due_diligence import finviz_model, finviz_view
finviz_view.news(ticker="TSLA", num=5)
Screenshots
Here is the error :
...gamestonk_terminal\stocks\due_diligence\finviz_view.py in news(ticker, num)
45 d_finviz_news = finviz_model.get_news(ticker)
46 i = 0
---> 47 for s_news_title, s_news_link in {*d_finviz_news}:
48 print(f"-> {s_news_title}")
49 print(f"{s_news_link}\n")
ValueError: too many values to unpack (expected 2)
Desktop (please complete the following information):
OS: windows
Python version : 3.8
Additional context
One solution would be to replace this line :
for s_news_title, s_news_link in {*d_finviz_news}:
By this line :
for s_news_title, s_news_link, *_ in d_finviz_news:
Describe the bug The following function is
broken
andunused
:gamestonk_terminal.stocks.due_diligence.finviz_view
news
Since this
news
function is unused maybe :stocks > dd
?news
should be remove (along with theget_news
function in the model) ?To Reproduce Here is the code to reproduce the issue :
Screenshots Here is the error :
Desktop (please complete the following information):
windows
3.8
Additional context One solution would be to replace this line :
By this line :