Passthrough fqsns list directly to `.load_symbols()`

pre_viz_calls
Tyler Goodlet 2022-11-14 16:50:41 -05:00
parent b0dd7cd65d
commit 0a3a73c35a
1 changed files with 2 additions and 9 deletions

View File

@ -118,17 +118,10 @@ async def _async_main(
# godwidget.hbox.addWidget(search) # godwidget.hbox.addWidget(search)
godwidget.search = search godwidget.search = search
symbols: list[str] = []
for sym in syms:
symbol, _, provider = sym.rpartition('.')
symbols.append(symbol)
# this internally starts a ``display_symbol_data()`` task above # this internally starts a ``display_symbol_data()`` task above
order_mode_ready = await godwidget.load_symbols( order_mode_ready = await godwidget.load_symbols(
provider, fqsns=syms,
symbols, loglevel=loglevel,
loglevel
) )
# spin up a search engine for the local cached symbol set # spin up a search engine for the local cached symbol set