mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 01:41:17 +00:00
Fix of issue #2767: list comprehension and del after that, instead of iterating over a changing dict (#2768)
This commit is contained in:
@@ -256,9 +256,9 @@
|
||||
" for ticker in clean_tickers:\n",
|
||||
" if ticker not in self.infos:\n",
|
||||
" self.infos[ticker] = yf.Ticker(ticker).info\n",
|
||||
" for ticker in self.infos:\n",
|
||||
" if ticker not in tickers:\n",
|
||||
" self.infos.pop(ticker)\n",
|
||||
" delete = [ticker for ticker in self.infos if ticker not in tickers]\n",
|
||||
" for ticker in delete:\n",
|
||||
" self.infos.pop(ticker)\n",
|
||||
" result = table_data(self.infos)\n",
|
||||
" fig = go.Figure(\n",
|
||||
" data=[\n",
|
||||
|
||||
Reference in New Issue
Block a user