mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-10-31 03:01:58 +01:00
Allow searching by fuzzy_nodes.
This commit is contained in:
1 parent
a3681c88ad
commit
981a18647d
1 file changed
+5
@@ -150,6 +150,11 @@ async def node_search(request):
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
if node_id is None:
|
||||
fuzzy_nodes = list(await store.get_fuzzy_nodes(raw_node_id))
|
||||
if len(fuzzy_nodes) == 1:
|
||||
node_id = fuzzy_nodes[0].node_id
|
||||
|
||||
async with asyncio.TaskGroup() as tg:
|
||||
if node_id:
|
||||
node_task = tg.create_task(store.get_node(node_id))
|
||||
|
||||
Reference in new issue
Block a user